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)


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

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:



878
879
880
# File 'sig/types.rbs', line 878

def category
  @category
end

#confidenceFloat (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float)


882
883
884
# File 'sig/types.rbs', line 882

def confidence
  @confidence
end

#endInteger (readonly)

Returns the value of attribute end.

Returns:

  • (Integer)


881
882
883
# File 'sig/types.rbs', line 881

def end
  @end
end

#startInteger (readonly)

Returns the value of attribute start.

Returns:

  • (Integer)


880
881
882
# File 'sig/types.rbs', line 880

def start
  @start
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


879
880
881
# File 'sig/types.rbs', line 879

def text
  @text
end