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

The language matched.

The percentage of the text which appears to be in this language. Between 0 and 100.

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for LanguageScore
[src]