File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
model/src/main/java/com/basistech/rosette/apimodel Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1717package com .basistech .rosette .apimodel ;
1818
1919import com .basistech .rosette .annotations .JacksonMixin ;
20+ import javax .validation .constraints .Min ;
2021import lombok .Builder ;
2122import lombok .Value ;
2223
2829@ JacksonMixin
2930public class CategoriesOptions extends Options {
3031
32+ /**
33+ * @deprecated
34+ * Users should use {@link singleLabel} to return only one result
35+ * or {@link scoreThreshold} to filter results based on raw score
36+ * @return number of categories
37+ */
38+ @ Deprecated
39+ @ Min (1 )
40+ private final Integer numCategories ;
41+
3142 /**
3243 * Single label mode will return only the highest scoring category, regardless of score
3344 * If singleLabel is false, every category whose score exceeds the default
You can’t perform that action at this time.
0 commit comments