Class: CLD3::NNetLanguageIdentifier::Result
- Inherits:
-
Struct
- Object
- Struct
- CLD3::NNetLanguageIdentifier::Result
- Defined in:
- lib/cld3.rb
Overview
Information about a predicted language. This is an instance of Struct with the following members:
- language
-
This is symbol.
- probability
-
Language probability. This is Numeric object.
- reliable?
-
Whether the prediction is reliable. This is true or false.
- proportion
-
Proportion of bytes associated with the language. If #find_language is called, this variable is set to 1. This is Numeric object.
- byte_ranges
-
Specifies the byte ranges in UTF-8 that |language| applies to. This is an Array of SpanInfo.
Instance Attribute Summary collapse
-
#byte_ranges ⇒ Object
Returns the value of attribute byte_ranges.
-
#language ⇒ Object
Returns the value of attribute language.
-
#probability ⇒ Object
Returns the value of attribute probability.
-
#proportion ⇒ Object
Returns the value of attribute proportion.
-
#reliable? ⇒ Object
Returns the value of attribute reliable?.
Instance Attribute Details
#byte_ranges ⇒ Object
Returns the value of attribute byte_ranges
46 47 48 |
# File 'lib/cld3.rb', line 46 def byte_ranges @byte_ranges end |
#language ⇒ Object
Returns the value of attribute language
46 47 48 |
# File 'lib/cld3.rb', line 46 def language @language end |
#probability ⇒ Object
Returns the value of attribute probability
46 47 48 |
# File 'lib/cld3.rb', line 46 def probability @probability end |
#proportion ⇒ Object
Returns the value of attribute proportion
46 47 48 |
# File 'lib/cld3.rb', line 46 def proportion @proportion end |
#reliable? ⇒ Object
Returns the value of attribute reliable?
46 47 48 |
# File 'lib/cld3.rb', line 46
def reliable?
@reliable?
end
|