Struct cld2::LanguageScore
[−]
[src]
pub struct LanguageScore { pub language: Option<Lang>, pub percent: u8, pub normalized_score: f64, }
Detailed information about how well the input text matched a specific language.
Fields
language: Option<Lang>
The language matched.
percent: u8
The percentage of the text which appears to be in this language. Between 0 and 100.
normalized_score: f64
Scores near 1.0 indicate a "normal" text for this language. Scores further away from 1.0 indicate strange or atypical texts.
Trait Implementations
impl Clone for LanguageScore
[src]
fn clone(&self) -> LanguageScore
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more