Skip to content Skip to sidebar Skip to footer
Showing posts with the label Tokenize

Using Regular Expression As A Tokenizer?

I am trying tokenize my corpus into sentences. I tried using spacy and nltk and they did not work w… Read more Using Regular Expression As A Tokenizer?

Tokenizing Non English Text In Python

I have a Persian text file that has some lines like this: ذوب 6 خوی 7 بزاق ،آب‌دهان ، یم 10 زهاب، … Read more Tokenizing Non English Text In Python

Tokenise Text And Create More Rows For Each Row In Dataframe

I want to do this with python and pandas. Let's suppose that I have the following: file_id te… Read more Tokenise Text And Create More Rows For Each Row In Dataframe

Padding Multiple Character With Space - Python

In perl, I can do the following with will pad my punctuation symbols with spaces: s/([،;؛¿!'\])… Read more Padding Multiple Character With Space - Python

Word_tokenize Typeerror: Expected String Or Buffer

When calling word_tokenize I get the following error: File 'C:\Python34\lib\site-packages\nltk\… Read more Word_tokenize Typeerror: Expected String Or Buffer

Pythonic Way To Implement A Tokenizer

I'm going to implement a tokenizer in Python and I was wondering if you could offer some style … Read more Pythonic Way To Implement A Tokenizer

How To Stop BERT From Breaking Apart Specific Words Into Word-piece

I am using a pre-trained BERT model to tokenize a text into meaningful tokens. However, the text ha… Read more How To Stop BERT From Breaking Apart Specific Words Into Word-piece