You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2012/05/16 15:55:28 UTC
svn commit: r1339167 - in
/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker:
action/MarkTableAction.java resource/CSVTable.java
Author: pkluegl
Date: Wed May 16 13:55:28 2012
New Revision: 1339167
URL: http://svn.apache.org/viewvc?rev=1339167&view=rev
Log:
UIMA-2402
- hotfix for ignoring the capitalization when matching the csv entries
Modified:
uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/action/MarkTableAction.java
uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/resource/CSVTable.java
Modified: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/action/MarkTableAction.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/action/MarkTableAction.java?rev=1339167&r1=1339166&r2=1339167&view=diff
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/action/MarkTableAction.java (original)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/action/MarkTableAction.java Wed May 16 13:55:28 2012
@@ -74,7 +74,7 @@ public class MarkTableAction extends Abs
map.put(each.getStringValue(block), featureMap.get(each).getIntegerValue(block));
}
TextMarkerWordList wordList = table.getWordList(index);
- Collection<AnnotationFS> found = wordList.find(stream, false, 0, new char[] {}, 0);
+ Collection<AnnotationFS> found = wordList.find(stream, true, 0, new char[] {}, 0);
for (AnnotationFS annotationFS : found) {
List<String> rowWhere = table.getRowWhere(index - 1, annotationFS.getCoveredText());
FeatureStructure newFS = stream.getCas().createFS(type);
Modified: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/resource/CSVTable.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/resource/CSVTable.java?rev=1339167&r1=1339166&r2=1339167&view=diff
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/resource/CSVTable.java (original)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/main/java/org/apache/uima/textmarker/resource/CSVTable.java Wed May 16 13:55:28 2012
@@ -87,7 +87,7 @@ public class CSVTable implements TextMar
List<String> columnData = getColumnData(column);
int i = 0;
for (String string : columnData) {
- if (string.equals(value)) {
+ if (string.toLowerCase().equals(value.toLowerCase())) {
return tableData.get(i);
}
i++;