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