This commit is contained in:
AB
2020-12-27 23:04:09 +03:00
commit e421d6f382
6 changed files with 451 additions and 0 deletions

13
examples/test.rs Normal file
View File

@ -0,0 +1,13 @@
extern crate mystem;
fn main() -> Result<(), mystem::AppError> {
let mut instance = mystem::MyStem::new()?;
for stem in instance.stemming("Связался с лучшим - подохни как все.".into())?
{
println!("{} is a lexeme of {}", stem.lex, stem.text)
}
#[allow(unused_must_use)]
instance.terminate();
Ok(())
}