public class TokenGroup extends Object
Constructor and Description |
---|
TokenGroup(TokenStream tokenStream) |
Modifier and Type | Method and Description |
---|---|
int |
getEndOffset() |
int |
getNumTokens() |
float |
getScore(int index) |
int |
getStartOffset() |
float |
getTotalScore() |
public TokenGroup(TokenStream tokenStream)
public float getScore(int index)
index
- a value between 0 and numTokens -1public int getStartOffset()
public int getEndOffset()
getEndOffset()
.public int getNumTokens()
public float getTotalScore()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.