You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use tantivy::tokenizer::*;
let tokenizer = tantivy_jieba::JiebaTokenizer {};
let mut token_stream = tokenizer.token_stream("测试");
assert_eq!(token_stream.next().unwrap().text, "测试");
assert!(token_stream.next().is_none());
but it gave me error in this line: tokenizer.token_stream("测试");
The error msg is:
no method named `token_stream` found for struct `JiebaTokenizer` in the current scope
items from traits can only be used if the trait is in scope`
How can I fix that?
Many thanks
The text was updated successfully, but these errors were encountered:
Hi,
I followed your example:
but it gave me error in this line:
tokenizer.token_stream("测试");
The error msg is:
How can I fix that?
Many thanks
The text was updated successfully, but these errors were encountered: