接口 ScoringModel
public interface ScoringModel
Represents a model capable of scoring a text against a query.
Useful for identifying the most relevant texts when scoring multiple texts against the same query.
The scoring model can be employed for re-ranking purposes.
Useful for identifying the most relevant texts when scoring multiple texts against the same query.
The scoring model can be employed for re-ranking purposes.
-
方法概要
修饰符和类型方法说明score(TextSegment segment, String query) Scores a givenTextSegmentagainst a given query.Scores a given text against a given query.scoreAll(List<TextSegment> segments, String query) Scores all providedTextSegments against a given query.
-
方法详细资料
-
score
Scores a given text against a given query.- 参数:
text- The text to be scored.query- The query against which to score the text.- 返回:
- the score.
-
score
Scores a givenTextSegmentagainst a given query.- 参数:
segment- TheTextSegmentto be scored.query- The query against which to score the segment.- 返回:
- the score.
-
scoreAll
Scores all providedTextSegments against a given query.- 参数:
segments- The list ofTextSegments to score.query- The query against which to score the segments.- 返回:
- the list of scores. The order of scores corresponds to the order of
TextSegments.
-