Class ElementCompleteness
- java.lang.Object
-
- com.yahoo.searchlib.ranking.features.ElementCompleteness
-
public class ElementCompleteness extends java.lang.Object
Calculates the elementCompleteness features- Author:
- bratseth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElementCompleteness.Item
-
Constructor Summary
Constructors Constructor Description ElementCompleteness()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Features
compute(java.util.Map<java.lang.String,java.lang.Integer> queryTerms, ElementCompleteness.Item[] field)
Computes the following elementCompleteness features:completeness
fieldCompleteness
queryCompleteness
elementWeight
-
-
-
Method Detail
-
compute
public static Features compute(java.util.Map<java.lang.String,java.lang.Integer> queryTerms, ElementCompleteness.Item[] field)
Computes the following elementCompleteness features:completeness
fieldCompleteness
queryCompleteness
elementWeight
- Parameters:
queryTerms
- the query terms with associated weights to compute overfield
- a set of weighted field values, where each is taken to be a space-separated string of tokens- Returns:
- a features object containing the values listed above
-
-