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)


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

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:



908
909
910
# File 'sig/types.rbs', line 908

def category
  @category
end

#confidenceFloat (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float)


912
913
914
# File 'sig/types.rbs', line 912

def confidence
  @confidence
end

#endInteger (readonly)

Returns the value of attribute end.

Returns:

  • (Integer)


911
912
913
# File 'sig/types.rbs', line 911

def end
  @end
end

#startInteger (readonly)

Returns the value of attribute start.

Returns:

  • (Integer)


910
911
912
# File 'sig/types.rbs', line 910

def start
  @start
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


909
910
911
# File 'sig/types.rbs', line 909

def text
  @text
end