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

Reduce reload word tokenizer engine in word_tokenize #973

Open
wannaphong opened this issue Nov 2, 2024 · 0 comments
Open

Reduce reload word tokenizer engine in word_tokenize #973

wannaphong opened this issue Nov 2, 2024 · 0 comments
Labels
enhancement enhance functionalities

Comments

@wannaphong
Copy link
Member

Current, word_tokenize function call word tokenizer engine in every using because it doesn't have global variable for store the engine, so it needs to reload same word tokenizer engine in every using.

We can fix by using global variable for store the engine and engine's name than check if it call same engine, it doesn't call word tokenizer engine.

@bact bact added this to PyThaiNLP Nov 2, 2024
@bact bact added the enhancement enhance functionalities label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhance functionalities
Projects
Status: No status
Development

No branches or pull requests

2 participants