Package com.basistech.rosette.apimodel
Class CategoriesOptions
java.lang.Object
com.basistech.rosette.apimodel.Options
com.basistech.rosette.apimodel.CategoriesOptions
Categorization options
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Deprecated.threshold against the category's raw score, whose value can be any real number.Single label mode will return only the highest scoring category, regardless of score If singleLabel is false, every category whose score exceeds the default (or specified)scoreThreshold
value will be returnedint
hashCode()
toString()
-
Method Details
-
builder
-
getNumCategories
Deprecated.Users should usesingleLabel
to return only one result orscoreThreshold
to filter results based on raw score- Returns:
- number of categories
-
getSingleLabel
Single label mode will return only the highest scoring category, regardless of score If singleLabel is false, every category whose score exceeds the default (or specified)scoreThreshold
value will be returned- Returns:
- whether or not we are in single label mode
-
getScoreThreshold
threshold against the category's raw score, whose value can be any real number.- Returns:
- the score threshold
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
singleLabel
to return only one result orscoreThreshold
to filter results based on raw score