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/06 11:44:16 UTC

svn commit: r1165579 - /incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/Entity.java

Author: joern
Date: Tue Sep  6 09:44:15 2011
New Revision: 1165579

URL: http://svn.apache.org/viewvc?rev=1165579&view=rev
Log:
OPENNLP-235 Added setter for entity text

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=1165579&r1=1165578&r2=1165579&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 Tue Sep  6 09:44:15 2011
@@ -49,10 +49,18 @@ public class Entity {
     return beginIndex;
   }
   
+  public void setEndIndex(int endIndex) {
+    this.endIndex = endIndex;
+  }
+  
   public int getEndIndex() {
     return endIndex;
   }
   
+  public void setEntityText(String entityText) {
+    this.entityText = entityText;
+  }
+  
   public String getEntityText() {
     return entityText;
   }
@@ -61,6 +69,10 @@ public class Entity {
     this.confidence = confidence;
   }
   
+  public void setConfirmed(boolean isConfirmed) {
+    this.isConfirmed = isConfirmed;
+  }
+  
   public boolean isConfirmed() {
     return isConfirmed;
   }
@@ -74,7 +86,4 @@ public class Entity {
     return entityText;
   }
 
-  public void setEndIndex(int endIndex) {
-    this.endIndex = endIndex;
-  }
 }