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)


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

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:



783
784
785
# File 'sig/types.rbs', line 783

def category
  @category
end

#confidenceFloat? (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float, nil)


787
788
789
# File 'sig/types.rbs', line 787

def confidence
  @confidence
end

#endInteger (readonly)

Returns the value of attribute end.

Returns:

  • (Integer)


786
787
788
# File 'sig/types.rbs', line 786

def end
  @end
end

#startInteger (readonly)

Returns the value of attribute start.

Returns:

  • (Integer)


785
786
787
# File 'sig/types.rbs', line 785

def start
  @start
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


784
785
786
# File 'sig/types.rbs', line 784

def text
  @text
end