@Bindable public class LabelFormatter extends Object
| Constructor and Description |
|---|
LabelFormatter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.