public interface Scorer
Modifier and Type | Method and Description |
---|---|
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
|
void startFragment(TextFragment newFragment)
newFragment
- float getTokenScore(Token token)
token
- The token to be scoredfloat getFragmentScore()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.