Class: Xberg::RerankedDocument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRerankedDocument

Returns a new instance of RerankedDocument.

Parameters:

  • index: (Integer)
  • score: (Float)
  • document: (String)


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

def initialize: (index: Integer, score: Float, document: String) -> void

Instance Attribute Details

#documentString (readonly)

Returns the value of attribute document.

Returns:

  • (String)


1842
1843
1844
# File 'sig/types.rbs', line 1842

def document
  @document
end

#indexInteger (readonly)

Returns the value of attribute index.

Returns:

  • (Integer)


1840
1841
1842
# File 'sig/types.rbs', line 1840

def index
  @index
end

#scoreFloat (readonly)

Returns the value of attribute score.

Returns:

  • (Float)


1841
1842
1843
# File 'sig/types.rbs', line 1841

def score
  @score
end