public class FieldFragList extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
FieldFragList.WeightedFragInfo |
Constructor | Description |
---|---|
FieldFragList(int fragCharSize) |
a constructor.
|
Modifier and Type | Method | 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()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.