File tree Expand file tree Collapse file tree 5 files changed +1
-155
lines changed
json/src/main/java/com/basistech/rosette/apimodel/jackson
model/src/main/java/com/basistech/rosette/apimodel Expand file tree Collapse file tree 5 files changed +1
-155
lines changed Original file line number Diff line number Diff line change 1616
1717package com .basistech .rosette .apimodel .jackson ;
1818
19- import com .basistech .rosette .apimodel .Address ;
2019import com .basistech .rosette .apimodel .AddressSimilarityRequest ;
2120import com .basistech .rosette .apimodel .AdmRequest ;
2221import com .basistech .rosette .apimodel .ConfigurationRequest ;
3837 * Jackson module to configure Json serialization and deserialization for the
3938 * Rosette API model.
4039 */
41- @ SuppressWarnings ("deprecation" )
4240public class ApiModelMixinModule extends AnnotatedDataModelModule {
4341
4442 public ApiModelMixinModule () {
@@ -69,8 +67,7 @@ public void setupModule(Module.SetupContext context) {
6967 context .setMixInAnnotations (NameDeduplicationRequest .class , NameDeduplicationRequestMixin .class );
7068 context .setMixInAnnotations (NameDeduplicationRequest .NameDeduplicationRequestBuilder .class ,
7169 NameDeduplicationRequestMixin .NameDeduplicationRequestBuilderMixin .class );
72- context .setMixInAnnotations (Address .class , AddressMixin .class );
73- context .setMixInAnnotations (Address .AddressBuilder .class , AddressMixin .AddressBuilderMixin .class );
70+
7471 context .setMixInAnnotations (FieldedAddress .class , FieldedAddressMixin .class );
7572 context .setMixInAnnotations (FieldedAddress .FieldedAddressBuilder .class ,
7673 FieldedAddressMixin .FieldedAddressBuilderMixin .class );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2020import lombok .Builder ;
2121import lombok .Value ;
2222
23- import javax .validation .constraints .Min ;
24-
2523/**
2624 * Categorization options
2725 */
3028@ JacksonMixin
3129public class CategoriesOptions extends Options {
3230
33- /**
34- * @deprecated
35- * Users should use {@link singleLabel} to return only one result
36- * or {@link scoreThreshold} to filter results based on raw score
37- * @return number of categories
38- */
39- @ Min (1 )
40- private final Integer numCategories ;
41-
4231 /**
4332 * Single label mode will return only the highest scoring category, regardless of score
4433 * If singleLabel is false, every category whose score exceeds the default
Original file line number Diff line number Diff line change @@ -63,13 +63,6 @@ public class EntitiesOptions extends Options {
6363 */
6464 String modelType ;
6565
66- /**
67- * @deprecated use includeDBpediaTypes instead.
68- * @return the includeDBpediaType flag.
69- */
70- @ Deprecated (since = "1.14.0" , forRemoval = true )
71- Boolean includeDBpediaType ;
72-
7366 /**
7467 * @since 1.14.0 (19.08)
7568 * @return the includeDBpediaType flag.
Original file line number Diff line number Diff line change @@ -84,13 +84,6 @@ public class Entity {
8484 */
8585 Label sentiment ;
8686
87- /**
88- * @deprecated use dbpediaTypes instead.
89- * @return the DBpediaType
90- */
91- @ Deprecated (since = "1.14.0" , forRemoval = true )
92- String dbpediaType ;
93-
9487 /**
9588 * @since 1.14.0 (19.08)
9689 * @return the DBpediaTypes
You can’t perform that action at this time.
0 commit comments