|
From: <ian...@us...> - 2014-10-21 14:36:38
|
Revision: 18400
http://sourceforge.net/p/gate/code/18400
Author: ian_roberts
Date: 2014-10-21 14:36:36 +0000 (Tue, 21 Oct 2014)
Log Message:
-----------
Damn Eclipse refactoring, too clever for its own good. Only the feature name should use the parameter, the JSON property should still be hardcoded "answer".
Modified Paths:
--------------
gate/trunk/plugins/Crowd_Sourcing/src/gate/crowdsource/classification/EntityClassificationResultsImporter.java
Modified: gate/trunk/plugins/Crowd_Sourcing/src/gate/crowdsource/classification/EntityClassificationResultsImporter.java
===================================================================
--- gate/trunk/plugins/Crowd_Sourcing/src/gate/crowdsource/classification/EntityClassificationResultsImporter.java 2014-10-21 14:34:44 UTC (rev 18399)
+++ gate/trunk/plugins/Crowd_Sourcing/src/gate/crowdsource/classification/EntityClassificationResultsImporter.java 2014-10-21 14:36:36 UTC (rev 18400)
@@ -175,7 +175,7 @@
for(JsonElement judgmentElt : judgments) {
JsonObject judgment = judgmentElt.getAsJsonObject();
JsonObject data = judgment.getAsJsonObject("data");
- String answer = data.get(answerFeatureName).getAsString();
+ String answer = data.get("answer").getAsString();
long judgmentId = judgment.get("id").getAsLong();
double trust = judgment.get("trust").getAsDouble();
long workerId = judgment.get("worker_id").getAsLong();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|