|
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.LabelFormatter
public class LabelFormatter
Formats cluster labels for final rendering.
| Constructor Summary | |
|---|---|
LabelFormatter()
|
|
| Method Summary | |
|---|---|
static String |
format(char[][] image,
boolean[] stopWord,
boolean joinWithSpace)
A method for formatting cluster labels that is not coupled to PreprocessingContext.allLabels and can be used in algorithms that do not
use the full preprocessing pipeline. |
String |
format(PreprocessingContext context,
int featureIndex)
Formats a cluster label for final rendering. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LabelFormatter()
| Method Detail |
|---|
public String format(PreprocessingContext context,
int featureIndex)
public static String format(char[][] image,
boolean[] stopWord,
boolean joinWithSpace)
PreprocessingContext.allLabels and can be used in algorithms that do not
use the full preprocessing pipeline.
image - images of the words making the label.stopWord - determines whether the corresponding word of the label is a stop
wordjoinWithSpace - if true, label tokens will be joined with a space
character, if false, no extra characters will be inserted
between label tokens.
|
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 | ||||||||