public abstract class FieldFragList
extends java.lang.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,
java.util.List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
convert the list of WeightedPhraseInfo to WeightedFragInfo, then add it to the fragInfos
|
java.util.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, java.util.List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
startOffset
- start offset of the fragmentendOffset
- end offset of the fragmentphraseInfoList
- list of WeightedPhraseInfo objectspublic java.util.List<FieldFragList.WeightedFragInfo> getFragInfos()
Copyright © 2010 - 2019 Adobe. All Rights Reserved