Skip to content

Commit 37fe57f

Browse files
Li Xuseth-mg
authored andcommitted
WS-1257 merge 1.8 master (#117)
* Preparing release. Version set to 1.8.0-SNAPSHOT * [maven-release-plugin] prepare release rosette-api-java-binding-1.8.0 * [maven-release-plugin] prepare for next development iteration * [maven-release-plugin] rollback the release of rosette-api-java-binding-1.8.0 * [maven-release-plugin] prepare release rosette-api-java-binding-1.8.0 * [maven-release-plugin] prepare for next development iteration * Tej 1058 linking confidence rosapi 1.8 (#110) * TEJ-1058: added linkingConfidence to EntityMention * TEJ-1058: test data * Tej 1058 sentiment (#112) * [maven-release-plugin] prepare release rosette-api-java-binding-1.8.1 * [maven-release-plugin] prepare for next development iteration * TEJ-1058: added linking confidence in EntitySentiment. * [maven-release-plugin] prepare release rosette-api-java-binding-1.8.2 * [maven-release-plugin] prepare for next development iteration * WS-1260 offsets for 1.8 (#115) * WS-1260: offsets for 1.8 * WS-1260: add mixin * WS-1260: checkstyle * [maven-release-plugin] prepare release rosette-api-java-binding-1.8.3 * [maven-release-plugin] prepare for next development iteration * WS-1257: bump version * WS-1257: checkstyle fixes * WS-1257: bump common-api and adm
1 parent 55ceb39 commit 37fe57f

File tree

18 files changed

+372
-111
lines changed

18 files changed

+372
-111
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.8.104-SNAPSHOT</version>
22+
<version>1.8.105-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api</artifactId>
2525
<name>rosette-api</name>

api/src/test/mock-data/response/eng-doc-entities.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"indocChainId": 2,
2020
"mention": "Afghanistan",
2121
"normalized": "Afghanistan",
22-
"type": "LOCATION"
22+
"type": "LOCATION",
23+
"salience": 1.0
2324
},
2425
{
2526
"count": 1,

api/src/test/mock-data/response/eng-doc-entities_linked.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@
44
"confidence": 0.6191439548350202,
55
"entityId": "Q30",
66
"indocChainId": 0,
7-
"mention": "U.S."
7+
"mention": "U.S.",
8+
"linkingConfidence": 0.5
89
},
910
{
1011
"confidence": 0.1883195998298547,
1112
"entityId": "Q796",
1213
"indocChainId": 1,
13-
"mention": "Iraq"
14-
},
14+
"mention": "Iraq",
15+
"linkingConfidence": 0.5
16+
},
1517
{
1618
"confidence": 0.16953509200793812,
1719
"entityId": "Q889",
1820
"indocChainId": 2,
19-
"mention": "Afghanistan"
21+
"mention": "Afghanistan",
22+
"linkingConfidence": 0.5
2023
}
2124
]
22-
}
25+
}

common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.8.104-SNAPSHOT</version>
22+
<version>1.8.105-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api-common</artifactId>
2525
<name>rosette-api-common</name>

examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>com.basistech.rosette</groupId>
2222
<artifactId>rosette-api-java-binding</artifactId>
23-
<version>1.8.104-SNAPSHOT</version>
23+
<version>1.8.105-SNAPSHOT</version>
2424
</parent>
2525
<groupId>com.basistech.rosette</groupId>
2626
<artifactId>rosette-api-examples</artifactId>

json/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>com.basistech.rosette</groupId>
2222
<artifactId>rosette-api-java-binding</artifactId>
23-
<version>1.8.104-SNAPSHOT</version>
23+
<version>1.8.105-SNAPSHOT</version>
2424
</parent>
2525
<artifactId>rosette-api-json</artifactId>
2626
<name>rosette-api-json</name>

json/src/main/java/com/basistech/rosette/apimodel/jackson/ApiModelMixinModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public void setupModule(Module.SetupContext context) {
103103
context.setMixInAnnotations(EntityMention.class, EntityMentionMixin.class);
104104
context.setMixInAnnotations(EntitySentiment.class, EntitySentimentMixin.class);
105105
context.setMixInAnnotations(ErrorResponse.class, ErrorResponseMixin.class);
106+
context.setMixInAnnotations(EntityMention.class, EntityMentionMixin.class);
106107
context.setMixInAnnotations(InfoResponse.class, InfoResponseMixin.class);
107108
context.setMixInAnnotations(LanguageDetectionResult.class, LanguageDetectionResultMixin.class);
108109
context.setMixInAnnotations(LanguageOptions.class, LanguageOptionsMixin.class);

json/src/main/java/com/basistech/rosette/apimodel/jackson/EntityMentionMixin.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 Basis Technology Corp.
2+
* Copyright 2014 Basis Technology Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,14 +25,16 @@
2525
public class EntityMentionMixin extends BaseMixin {
2626
@JsonCreator
2727
public EntityMentionMixin(
28+
@JsonProperty("indocChainId") Integer indocChainId,
2829
@JsonProperty("type") String type,
2930
@JsonProperty("mention") String mention,
3031
@JsonProperty("normalized") String normalized,
3132
@JsonProperty("count") Integer count,
3233
@JsonProperty("mentionOffsets") List<MentionOffsets> mentionOffsets,
3334
@JsonProperty("entityId") String entityId,
3435
@JsonProperty("confidence") Double confidence,
35-
@JsonProperty("salience") Double salience
36+
@JsonProperty("salience") Double salience,
37+
@JsonProperty("linkingConfidence") Double linkingConfidence
3638
) {
3739
//
3840
}

json/src/main/java/com/basistech/rosette/apimodel/jackson/EntitySentimentMixin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 Basis Technology Corp.
2+
* Copyright 2016 Basis Technology Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,6 +37,7 @@ public EntitySentimentMixin(
3737
@JsonProperty("entityId") String entityId,
3838
@JsonProperty("confidence") Double confidence,
3939
@JsonProperty("salience") Double salience,
40+
@JsonProperty("linkingConfidence") Double linkingConfidence,
4041
@JsonProperty("sentiment") Label sentiment) {
4142
//
4243
}

json/src/main/java/com/basistech/rosette/apimodel/jackson/MentionOffsetsMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ public MentionOffsetsMixin(
3030
@JsonProperty("endOffset") Integer endOffset) {
3131
//
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)