-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
From Tokenizer trait declaration:
pub trait Tokenizer {
fn segment(&self, text: &str, safe: Option<bool>, parallel: Option<bool>) -> Vec<String>;
fn segment_to_string(
&self,
text: &str,
safe: Option<bool>,
parallel: Option<bool>,
) -> Vec<String>;
}It provides 2 methods that look do the same thing. And in Newmm, it do the same things for both methods (Ref here). I purpose to clarify which one we should use and clean up trait protocol.