Class: CLD3::NNetLanguageIdentifier::SpanInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/cld3.rb

Overview

Holds probability that Span, specified by start/end indices, is a given language. The langauge is not stored here; it can be found in Result, which holds an Array of SpanInfo.

Instance Attribute Summary collapse

Instance Attribute Details

#end_indexObject

Returns the value of attribute end_index

Returns:

  • (Object)

    the current value of end_index



28
29
30
# File 'lib/cld3.rb', line 28

def end_index
  @end_index
end

#probabilityObject

Returns the value of attribute probability

Returns:

  • (Object)

    the current value of probability



28
29
30
# File 'lib/cld3.rb', line 28

def probability
  @probability
end

#start_indexObject

Returns the value of attribute start_index

Returns:

  • (Object)

    the current value of start_index



28
29
30
# File 'lib/cld3.rb', line 28

def start_index
  @start_index
end