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

into_tokenizer don't work with stop_words #319

Open
ManyTheFish opened this issue Nov 25, 2024 · 0 comments
Open

into_tokenizer don't work with stop_words #319

ManyTheFish opened this issue Nov 25, 2024 · 0 comments

Comments

@ManyTheFish
Copy link
Member

The Tokenizer build with TokenizerBuilder::into_tokenizer never take into account the stop_words,

let mut tokenizer_builder = TokenizerBuilder::new();
tokenizer_builder.stop_words(stop_words);

// this creates a tokenizer without stop_words
let tokenizer = tokenizer_builder.into_tokenizer();
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

1 participant