|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.text.preprocessing.filter.CompleteLabelFilter
public class CompleteLabelFilter
A filter that removes "incomplete" labels.
See this document, page 31 for a definition of a complete phrase.
| Field Summary | |
|---|---|
boolean |
enabled
Remove truncated phrases. |
double |
labelOverrideThreshold
Truncated label threshold. |
| Constructor Summary | |
|---|---|
CompleteLabelFilter()
|
|
| Method Summary | |
|---|---|
void |
filter(PreprocessingContext context,
boolean[] acceptedStems,
boolean[] acceptedPhrases)
Marks incomplete labels. |
boolean |
isEnabled()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean enabled
public double labelOverrideThreshold
| Constructor Detail |
|---|
public CompleteLabelFilter()
| Method Detail |
|---|
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.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||