Revision: 18836
http://sourceforge.net/p/gate/code/18836
Author: markagreenwood
Date: 2015-07-28 11:05:08 +0000 (Tue, 28 Jul 2015)
Log Message:
-----------
bugs are what happens when you copy-and-paste code without remembering to
actually change it
Modified Paths:
--------------
gate/trunk/plugins/Format_CSV/gcp/csv4gcp.jar
gate/trunk/plugins/Format_CSV/gcp/src/gate/cloud/io/csv/CSVStreamingInputHandler.java
Modified: gate/trunk/plugins/Format_CSV/gcp/csv4gcp.jar
===================================================================
(Binary files differ)
Modified:
gate/trunk/plugins/Format_CSV/gcp/src/gate/cloud/io/csv/CSVStreamingInputHandler.java
===================================================================
---
gate/trunk/plugins/Format_CSV/gcp/src/gate/cloud/io/csv/CSVStreamingInputHandler.java
2015-07-28 10:46:28 UTC (rev 18835)
+++
gate/trunk/plugins/Format_CSV/gcp/src/gate/cloud/io/csv/CSVStreamingInputHandler.java
2015-07-28 11:05:08 UTC (rev 18836)
@@ -132,7 +132,7 @@
encoding = configData.get(PARAM_ENCODING);
separatorChar = configData.get(PARAM_SEPARATOR_CHARACTER).charAt(0);
- quoteChar = configData.get(PARAM_SEPARATOR_CHARACTER).charAt(0);
+ quoteChar = configData.get(PARAM_QUOTE_CHARACTER).charAt(0);
colLabels = Boolean.parseBoolean(configData.get(PARAM_LABELLED_COLUMNS));
column = Integer.parseInt(configData.get(PARAM_COLUMN));
}
@@ -202,7 +202,7 @@
features = (colLabels ? csvReader.readNext() : null);
- idCounter = 0;
+ idCounter = (colLabels ? 1 : 0);
}
@@ -238,7 +238,7 @@
// skip the line if the column with the content is empty
if(nextLine[column].trim().equals("")) continue;
- String id = srcFile.getName() + ":" + idCounter++;
+ String id = srcFile.getName() + "." + idCounter++;
if(completedDocuments.contains(id)) continue;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs