Class: Xberg::Entity

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEntity

Returns a new instance of Entity.

Parameters:

  • category: (EntityCategory)
  • text: (String)
  • start: (Integer)
  • end: (Integer)
  • confidence: (Float)


944
# File 'sig/types.rbs', line 944

def initialize: (category: EntityCategory, text: String, start: Integer, end: Integer, ?confidence: Float) -> void

Instance Attribute Details

#categoryEntityCategory (readonly)

Returns the value of attribute category.

Returns:



938
939
940
# File 'sig/types.rbs', line 938

def category
  @category
end

#confidenceFloat (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float)


942
943
944
# File 'sig/types.rbs', line 942

def confidence
  @confidence
end

#endInteger (readonly)

Returns the value of attribute end.

Returns:

  • (Integer)


941
942
943
# File 'sig/types.rbs', line 941

def end
  @end
end

#startInteger (readonly)

Returns the value of attribute start.

Returns:

  • (Integer)


940
941
942
# File 'sig/types.rbs', line 940

def start
  @start
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


939
940
941
# File 'sig/types.rbs', line 939

def text
  @text
end