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

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

Regex Tokenizer To Split A Text Into Words, Digits And Punctuation Marks

What I want to do is to split a text into his ultimate elements. For example: from nltk.tokenize im… Read more Regex Tokenizer To Split A Text Into Words, Digits And Punctuation Marks

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

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