Update milli/src/update/index_documents/extract/extract_docid_word_positions.rs

Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
Many the fish 2023-08-10 10:05:03 +02:00 committed by GitHub
parent 4a21fecf67
commit 43c13faeda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,11 +55,9 @@ pub fn extract_docid_word_positions<R: io::Read + io::Seek>(
tokenizer_builder.stop_words(stop_words); tokenizer_builder.stop_words(stop_words);
} }
if let Some(dictionary) = dictionary { if let Some(dictionary) = dictionary {
// let dictionary: Vec<_> = dictionary.iter().map(String::as_str).collect();
tokenizer_builder.words_dict(dictionary.as_slice()); tokenizer_builder.words_dict(dictionary.as_slice());
} }
if let Some(separators) = allowed_separators { if let Some(separators) = allowed_separators {
// let separators: Vec<_> = separators.iter().map(String::as_str).collect();
tokenizer_builder.separators(separators.as_slice()); tokenizer_builder.separators(separators.as_slice());
} }
let tokenizer = tokenizer_builder.build(); let tokenizer = tokenizer_builder.build();