public class TrainingData extends GenericModel
NaturalLanguageClassifier| Constructor and Description |
|---|
TrainingData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClass(String className)
Adds a class to the training data.
|
List<String> |
getClasses()
Gets the classes.
|
String |
getText()
Gets the representative phrase.
|
void |
setClasses(List<String> classes)
Sets the classes.
|
void |
setText(String text)
Sets the representative phrase.
|
TrainingData |
withClasses(String... classes)
With classes.
|
TrainingData |
withText(String text)
With text.
|
equals, hashCode, toStringpublic String getText()
public void setText(String text)
text - the new phrasepublic void setClasses(List<String> classes)
classes - the new classespublic TrainingData withText(String text)
text - the textpublic TrainingData withClasses(String... classes)
classes - the classespublic void addClass(String className)
className - the class name to addCopyright © 2015. All rights reserved.