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)


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

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

Instance Attribute Details

#documentString (readonly)

Returns the value of attribute document.

Returns:

  • (String)


1789
1790
1791
# File 'sig/types.rbs', line 1789

def document
  @document
end

#indexInteger (readonly)

Returns the value of attribute index.

Returns:

  • (Integer)


1787
1788
1789
# File 'sig/types.rbs', line 1787

def index
  @index
end

#scoreFloat (readonly)

Returns the value of attribute score.

Returns:

  • (Float)


1788
1789
1790
# File 'sig/types.rbs', line 1788

def score
  @score
end