public class WeightedFieldFragList extends FieldFragList
FieldFragList.FieldFragList.WeightedFragInfo| Constructor and Description |
|---|
WeightedFieldFragList(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
|
getFragInfospublic WeightedFieldFragList(int fragCharSize)
fragCharSize - the length (number of chars) of a fragmentpublic void add(int startOffset,
int endOffset,
List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
FieldFragListadd in class FieldFragListstartOffset - start offset of the fragmentendOffset - end offset of the fragmentphraseInfoList - list of WeightedPhraseInfo objectsCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.