|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.retrieval.Okapi
public class Okapi
A class implementing the Okapi term weighting function.
| Field Summary | |
|---|---|
protected static java.lang.String |
logTag
|
| Constructor Summary | |
|---|---|
Okapi()
|
|
| Method Summary | |
|---|---|
float |
initTerm(WeightingComponents wc)
Initializes the TFIDF weighting function for the given term, calculating the collection-level IDF component, which is returned. |
float |
termWeight(WeightingComponents wc)
Calculates the weight for a particular term in a particular document, given a set of weighting components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.String logTag
| Constructor Detail |
|---|
public Okapi()
| Method Detail |
|---|
public float initTerm(WeightingComponents wc)
initTerm in interface WeightingFunctionwc - a set of weighting components.
WeightingComponents.wtpublic float termWeight(WeightingComponents wc)
termWeight in interface WeightingFunctionwc - a set of weighting components.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||