Files
mystem-rs/examples/test.rs
2020-12-27 23:04:09 +03:00

14 lines
367 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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(())
}