|
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.LabelFilterProcessor
public class LabelFilterProcessor
Applies basic filtering to words and phrases to produce candidates for cluster labels.
Filtering is applied to PreprocessingContext.AllWords and PreprocessingContext.AllPhrases, the results are saved
to PreprocessingContext.AllLabels. Currently, the following filters are applied:
PreprocessingContext:
This class requires that Tokenizer, CaseNormalizer,
StopListMarker and PhraseExtractor be invoked first.
| Field Summary | |
|---|---|
CompleteLabelFilter |
completeLabelFilter
Truncated phrase filter for this processor. |
GenitiveLabelFilter |
genitiveLabelFilter
Genitive length label filter. |
MinLengthLabelFilter |
minLengthLabelFilter
Min length label filter. |
NumericLabelFilter |
numericLabelFilter
Numeric label filter for this processor. |
QueryLabelFilter |
queryLabelFilter
Query word label filter for this processor. |
StopLabelFilter |
stopLabelFilter
Stop label filter. |
StopWordLabelFilter |
stopWordLabelFilter
Stop word label filter for this processor. |
| Constructor Summary | |
|---|---|
LabelFilterProcessor()
|
|
| Method Summary | |
|---|---|
void |
process(PreprocessingContext context)
Processes all filters declared as fields of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public QueryLabelFilter queryLabelFilter
public StopWordLabelFilter stopWordLabelFilter
public NumericLabelFilter numericLabelFilter
public CompleteLabelFilter completeLabelFilter
public MinLengthLabelFilter minLengthLabelFilter
public GenitiveLabelFilter genitiveLabelFilter
public StopLabelFilter stopLabelFilter
| Constructor Detail |
|---|
public LabelFilterProcessor()
| Method Detail |
|---|
public void process(PreprocessingContext context)
|
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 | ||||||||