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. ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs