@Bindable(prefix="CompleteLabelFilter") public class CompleteLabelFilter extends Object implements ILabelFilter
See this document, page 31 for a definition of a complete phrase.
| Modifier and Type | Field and Description |
|---|---|
boolean |
enabled
Remove truncated phrases.
|
double |
labelOverrideThreshold
Truncated label threshold.
|
| Constructor and Description |
|---|
CompleteLabelFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(PreprocessingContext context,
boolean[] acceptedStems,
boolean[] acceptedPhrases)
Marks incomplete labels.
|
boolean |
isEnabled() |
@Input @Processing @Attribute @Label(value="Remove truncated phrases") @Level(value=BASIC) @Group(value="Labels") public boolean enabled
@Input @Processing @Attribute @Label(value="Truncated label threshold") @Level(value=ADVANCED) @Group(value="Labels") public double labelOverrideThreshold
public void filter(PreprocessingContext context, boolean[] acceptedStems, boolean[] acceptedPhrases)
filter in interface ILabelFiltercontext - contains words and phrases to be filteredacceptedStems - the filter should set to false those elements
that correspond to the stems to be filtered outacceptedPhrases - the filter should set to false those elements
that correspond to the phrases to be filtered outpublic boolean isEnabled()
isEnabled in interface ILabelFiltertrue if the filter is to be applied, false if the
filter should be omitted by the LabelFilterProcessor.