Struct rsmorphy::analyzer::morph::MorphAnalyzer [−][src]
pub struct MorphAnalyzer { pub dict: Dictionary, pub estimator: SingleTagProbabilityEstimator, pub units: Units, }
Fields
dict: Dictionary
estimator: SingleTagProbabilityEstimator
units: Units
Methods
impl MorphAnalyzer
[src]
impl MorphAnalyzer
pub fn new(dict: Dictionary) -> Self
[src]
pub fn new(dict: Dictionary) -> Self
Creates MorphAnalyzer
with preloaded dict
pub fn from_file<P>(p: P) -> Self where
P: AsRef<Path>,
[src]
pub fn from_file<P>(p: P) -> Self where
P: AsRef<Path>,
Loads Dictionary
from disk and creates MorphAnalyzer
pub fn parse(&self, word: &str) -> ParseResult
[src]
pub fn parse(&self, word: &str) -> ParseResult
Analyze the word and return a list of Parsed
:
Trait Implementations
impl Debug for MorphAnalyzer
[src]
impl Debug for MorphAnalyzer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MorphAnalyzer
[src]
impl Clone for MorphAnalyzer
fn clone(&self) -> MorphAnalyzer
[src]
fn clone(&self) -> MorphAnalyzer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for MorphAnalyzer
impl Send for MorphAnalyzer
impl Sync for MorphAnalyzer
impl Sync for MorphAnalyzer