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)


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

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

Instance Attribute Details

#documentString (readonly)

Returns the value of attribute document.

Returns:

  • (String)


2300
2301
2302
# File 'sig/types.rbs', line 2300

def document
  @document
end

#indexInteger (readonly)

Returns the value of attribute index.

Returns:

  • (Integer)


2298
2299
2300
# File 'sig/types.rbs', line 2298

def index
  @index
end

#scoreFloat (readonly)

Returns the value of attribute score.

Returns:

  • (Float)


2299
2300
2301
# File 'sig/types.rbs', line 2299

def score
  @score
end