You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2011/09/05 16:11:05 UTC
svn commit: r1165292 -
/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/Entity.java
Author: joern
Date: Mon Sep 5 14:11:05 2011
New Revision: 1165292
URL: http://svn.apache.org/viewvc?rev=1165292&view=rev
Log:
OPENNLP-235 Declared methods as public
Modified:
incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/Entity.java
Modified: incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/Entity.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/Entity.java?rev=1165292&r1=1165291&r2=1165292&view=diff
==============================================================================
--- incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/Entity.java (original)
+++ incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/Entity.java Mon Sep 5 14:11:05 2011
@@ -17,6 +17,8 @@
package org.apache.opennlp.caseditor.namefinder;
+// TODO: Rename to PotentialAnnotation, should also contain a type, then we can use
+// reuse the code to create an annotation for it.
public class Entity {
private final int beginIndex;
@@ -28,7 +30,7 @@ public class Entity {
private Double confidence;
- Entity(int beginIndex, int endIndex, String entityText, Double confidence, boolean isConfirmed) {
+ public Entity(int beginIndex, int endIndex, String entityText, Double confidence, boolean isConfirmed) {
this.beginIndex = beginIndex;
this.endIndex = endIndex;
@@ -39,27 +41,27 @@ public class Entity {
this.isConfirmed = isConfirmed;
}
- int getBeginIndex() {
+ public int getBeginIndex() {
return beginIndex;
}
- int getEndIndex() {
+ public int getEndIndex() {
return endIndex;
}
- String getEntityText() {
+ public String getEntityText() {
return entityText;
}
- void setConfidence(Double confidence) {
+ public void setConfidence(Double confidence) {
this.confidence = confidence;
}
- boolean isConfirmed() {
+ public boolean isConfirmed() {
return isConfirmed;
}
- Double getConfidence() {
+ public Double getConfidence() {
return confidence;
}