Downloads · 30 days
0
sayanbanerjee32/bengali_tokenizer
bengali_tokenizer is a machine learning model from sayanbanerjee32. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Multiple references of raw Bengali corpus are available at this GitHub link. Used following references from that for gathering raw bengali text for the purpose of training the tokenizer. - Tab-delimited Bilingual Sent…
Downloads · 30 days
0
Access
Public
Updated Jun 21, 2024
Repo size
307 KB
Likes
1
Public
Click a slice to open those files.
.pkl144 KB · 96%
From the Hugging Face model README
Multiple references of raw Bengali corpus are available at this GitHub link. Used following references from that for gathering raw bengali text for the purpose of training the tokenizer. - Tab-delimited Bilingual Sentence Pairs - These are selected sentence pairs from the Tatoeba Project. This has approximately 6,500 english to bengali sentence pairs. Only Bengali sentences are extracted for training the tokenization - IndicParaphrase - Only the input data from validation dataset of Bengali paraphrases are used for the tokenization. That dataset contains 10,000 Bengali sentences.
's|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+ was resulting in splitting of individual characters instead of words. ?\p{Bengali}+| ?[^\s\p{Bengali}]+|\s+(?!\S)|\s+ that could split the sentence "সবাই যা করতে চায় তা করতে চায়নি।" into following words 'সবাই', ' যা', ' করতে', ' চায়', ' তা', ' করতে', ' চায়নি', '।'encode and decoder function to deal with text chucks instead of complete sentences. Ref's|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+ was resulting in splitting of individual characters instead of words. ?\p{Bengali}+| ?[^\s\p{Bengali}]+|\s+(?!\S)|\s+ that could split the sentence "সবাই যা করতে চায় তা করতে চায়নি।" into following words 'সবাই', ' যা', ' করতে', ' চায়', ' তা', ' করতে', ' চায়নি', '।'encode and decoder function to deal with text chucks instead of complete sentences. RefThe app is available here
The App takes one or more Bengali sentences as input provide following outputs