Revision: 17778
http://sourceforge.net/p/gate/code/17778
Author: ggorrell
Date: 2014-04-07 14:41:04 +0000 (Mon, 07 Apr 2014)
Log Message:
-----------
Added full feature set of instance to output for classification (not applicable
to other learning types).
Modified Paths:
--------------
gate/trunk/plugins/Learning/src/gate/learning/LightWeightLearningApi.java
Modified:
gate/trunk/plugins/Learning/src/gate/learning/LightWeightLearningApi.java
===================================================================
--- gate/trunk/plugins/Learning/src/gate/learning/LightWeightLearningApi.java
2014-04-07 01:22:15 UTC (rev 17777)
+++ gate/trunk/plugins/Learning/src/gate/learning/LightWeightLearningApi.java
2014-04-07 14:41:04 UTC (rev 17778)
@@ -1191,6 +1191,7 @@
selectedLabels[i] + 1).toString());
features.put("prob", valuesLabels[i]);
Annotation ann = annotationArray.get(i);
+ features.putAll(ann.getFeatures()); //GG: put all instance features on
output
// For relation data, need the argument features
if(engineSettings.datasetDefinition.dataType ==
DataSetDefinition.RelationData) {
String arg1V = ann.getFeatures().get(
@@ -1262,6 +1263,7 @@
features.put(featName, strB.toString().trim());
// features.put("prob", valuesLabels[i]);
Annotation ann = annotationArray.get(i);
+ features.putAll(ann.getFeatures()); //GG: put all instance features on
output
// For relation data, need the argument features
if(engineSettings.datasetDefinition.dataType ==
DataSetDefinition.RelationData) {
String arg1V = ann.getFeatures().get(
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_APR
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs