Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tokenizer feature #17

Open
Olamyy opened this issue Dec 13, 2019 · 1 comment
Open

Tokenizer feature #17

Olamyy opened this issue Dec 13, 2019 · 1 comment
Assignees

Comments

@Olamyy
Copy link
Contributor

Olamyy commented Dec 13, 2019

Thinking about including a tokenizer class in the project.
I'm thinking the API could look like:

from iranlowo.tokenizer import Tokenizer

text = "some text"
word_tokens = Tokenizer(text).word_tokenize()
sentence_tokens = Tokenizer(text).sentence_tokenize()
@ruohoruotsi
Copy link
Member

I think the API looks good, it would simplify the requirements.txt which currently for ADR depend on NLTK etc for tokenization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants