INNER CODE UNIT · Rust
source
bminixhofer/nlprule · python/src/lib.rs:270
fn source(&self) -> &str {
self.suggestion.source()
}
#[getter]
fn message(&self) -> &str {
self.suggestion.message()
}
}
impl From<Suggestion> for PySuggestion {
fn from(suggestion: Suggestion) -> Self {
PySuggestion { suggestion }
}
}
/// The tokenizer.
/// Does dictionary- and rule-based POS tagging, lemmatization and (depending on the language) chunking.