You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/EntitiesResult.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ public class EntitiesResult extends GenericModel {
24
24
privateStringtype;
25
25
privateStringtext;
26
26
privateDoublerelevance;
27
+
privateDoubleconfidence;
27
28
privateList<EntityMention> mentions;
28
29
privateLongcount;
29
30
privateEmotionScoresemotion;
@@ -63,6 +64,19 @@ public Double getRelevance() {
63
64
returnrelevance;
64
65
}
65
66
67
+
/**
68
+
* Gets the confidence.
69
+
*
70
+
* Confidence in the entity identification from 0 to 1. Higher values indicate higher confidence. In standard entities
71
+
* requests, confidence is returned only for English text. All entities requests that use custom models return the
Copy file name to clipboardExpand all lines: natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/EntityMention.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ public class EntityMention extends GenericModel {
23
23
24
24
privateStringtext;
25
25
privateList<Long> location;
26
+
privateDoubleconfidence;
26
27
27
28
/**
28
29
* Gets the text.
@@ -45,4 +46,17 @@ public String getText() {
45
46
publicList<Long> getLocation() {
46
47
returnlocation;
47
48
}
49
+
50
+
/**
51
+
* Gets the confidence.
52
+
*
53
+
* Confidence in the entity identification from 0 to 1. Higher values indicate higher confidence. In standard entities
54
+
* requests, confidence is returned only for English text. All entities requests that use custom models return the
0 commit comments