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)


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

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:



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

def category
  @category
end

#confidenceFloat (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float)


917
918
919
# File 'sig/types.rbs', line 917

def confidence
  @confidence
end

#endInteger (readonly)

Returns the value of attribute end.

Returns:

  • (Integer)


916
917
918
# File 'sig/types.rbs', line 916

def end
  @end
end

#startInteger (readonly)

Returns the value of attribute start.

Returns:

  • (Integer)


915
916
917
# File 'sig/types.rbs', line 915

def start
  @start
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


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

def text
  @text
end