public class FieldFragList extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldFragList.WeightedFragInfo |
Constructor and Description |
---|
FieldFragList(int fragCharSize)
a constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int startOffset,
int endOffset,
List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
convert the list of WeightedPhraseInfo to WeightedFragInfo, then add it to the fragInfos
|
List<FieldFragList.WeightedFragInfo> |
getFragInfos()
return the list of WeightedFragInfos.
|
public FieldFragList(int fragCharSize)
fragCharSize
- the length (number of chars) of a fragmentpublic void add(int startOffset, int endOffset, List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
startOffset
- start offset of the fragmentendOffset
- end offset of the fragmentphraseInfoList
- list of WeightedPhraseInfo objectspublic List<FieldFragList.WeightedFragInfo> getFragInfos()