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)


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

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

Instance Attribute Details

#documentString (readonly)

Returns the value of attribute document.

Returns:

  • (String)


1777
1778
1779
# File 'sig/types.rbs', line 1777

def document
  @document
end

#indexInteger (readonly)

Returns the value of attribute index.

Returns:

  • (Integer)


1775
1776
1777
# File 'sig/types.rbs', line 1775

def index
  @index
end

#scoreFloat (readonly)

Returns the value of attribute score.

Returns:

  • (Float)


1776
1777
1778
# File 'sig/types.rbs', line 1776

def score
  @score
end