public abstract class FieldFragList extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldFragList.WeightedFragInfo
List of term offsets + weight for a frag info
|
Constructor and Description |
---|
FieldFragList(int fragCharSize)
a constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract 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 abstract 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-2017 Apache Software Foundation. All Rights Reserved.