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 10:53:31 UTC
svn commit: r1165568 -
/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/namefinder/Entity.java
Author: joern
Date: Tue Sep 6 08:53:31 2011
New Revision: 1165568
URL: http://svn.apache.org/viewvc?rev=1165568&view=rev
Log:
OPENNLP-235 Changed merge logic slightly
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=1165568&r1=1165567&r2=1165568&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 08:53:31 2011
@@ -21,10 +21,10 @@ package org.apache.opennlp.caseditor.nam
// reuse the code to create an annotation for it.
public class Entity {
- private final int beginIndex;
- private final int endIndex;
+ private int beginIndex;
+ private int endIndex;
- private final String entityText;
+ private String entityText;
private boolean isConfirmed;
@@ -41,6 +41,10 @@ public class Entity {
this.isConfirmed = isConfirmed;
}
+ public void setBeginIndex(int beginIndex) {
+ this.beginIndex = beginIndex;
+ }
+
public int getBeginIndex() {
return beginIndex;
}
@@ -69,4 +73,8 @@ public class Entity {
public String toString() {
return entityText;
}
-}
\ No newline at end of file
+
+ public void setEndIndex(int endIndex) {
+ this.endIndex = endIndex;
+ }
+}