mirror of
https://github.com/house-of-vanity/mystem-rs.git
synced 2025-07-06 21:24:07 +00:00
Init
This commit is contained in:
13
examples/test.rs
Normal file
13
examples/test.rs
Normal 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(())
|
||||
}
|
Reference in New Issue
Block a user