|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scorer
Adds to the score for a fragment based on its tokens
Method Summary | |
---|---|
float |
getFragmentScore()
Called when the highlighter has no more tokens for the current fragment - the scorer returns the weighting it has derived for the most recent fragment, typically based on the tokens passed to getTokenScore(). |
float |
getTokenScore(Token token)
Called for each token in the current fragment |
void |
startFragment(TextFragment newFragment)
called when a new fragment is started for consideration |
Method Detail |
---|
void startFragment(TextFragment newFragment)
newFragment
- float getTokenScore(Token token)
token
- The token to be scored
float getFragmentScore()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |