Struct cld2::DetectionResult
[−]
[src]
pub struct DetectionResult { pub language: Option<Lang>, pub scores: [LanguageScore; 3], pub text_bytes: i32, pub reliability: Reliability, // some fields omitted }
Detailed language detection results.
Note: Do not rely on this struct containing only the fields listed below. It may gain extra fields in the future.
Fields
language: Option<Lang>
The language detected.
scores: [LanguageScore; 3]
The scores for the top 3 candidate languages.
text_bytes: i32
The number of bytes of actual text found, excluding tags, etc.
reliability: Reliability
Is this guess reliable?
Methods
impl DetectionResult
[src]
fn new(language: Option<Lang>,
scores: [LanguageScore; 3],
text_bytes: i32,
reliability: Reliability)
-> DetectionResult
scores: [LanguageScore; 3],
text_bytes: i32,
reliability: Reliability)
-> DetectionResult
EXPERIMENTAL: Create a new DetectionResult. You generally don't need to call this directly.
Trait Implementations
impl Clone for DetectionResult
[src]
fn clone(&self) -> DetectionResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more