mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
fix: Remove debug println from the tokenizer
This commit is contained in:
parent
743974e60d
commit
10414791a2
@ -105,8 +105,6 @@ impl<'a> Iterator for Tokenizer<'a> {
|
|||||||
char_index: self.char_index,
|
char_index: self.char_index,
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("no-cjk with start_word returns: {:?}", token);
|
|
||||||
|
|
||||||
self.char_index += word.chars().count();
|
self.char_index += word.chars().count();
|
||||||
return Some(token)
|
return Some(token)
|
||||||
}
|
}
|
||||||
@ -143,8 +141,6 @@ impl<'a> Iterator for Tokenizer<'a> {
|
|||||||
char_index: self.char_index,
|
char_index: self.char_index,
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("cjk with start_word returns: {:?}", token);
|
|
||||||
|
|
||||||
self.word_index += 1;
|
self.word_index += 1;
|
||||||
self.char_index += word.chars().count();
|
self.char_index += word.chars().count();
|
||||||
|
|
||||||
@ -164,8 +160,6 @@ impl<'a> Iterator for Tokenizer<'a> {
|
|||||||
char_index: self.char_index,
|
char_index: self.char_index,
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("cjk without start_word returns: {:?}", token);
|
|
||||||
|
|
||||||
if tail.chars().next().and_then(detect_separator).is_none() {
|
if tail.chars().next().and_then(detect_separator).is_none() {
|
||||||
self.word_index += 1;
|
self.word_index += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user