GateNLP / gateplugin-LearningFramework

A plugin for the GATE language technology framework for training and using machine learning models. Currently supports Mallet (MaxEnt, NaiveBayes, CRF and others), LibSVM, Scikit-Learn, Weka, and DNNs through Pytorch and Keras.
https://gatenlp.github.io/gateplugin-LearningFramework/
GNU Lesser General Public License v2.1
26 stars 6 forks source link

Find out why we get a missing location when exporting abalone #27

Closed johann-petrak closed 8 years ago

johann-petrak commented 8 years ago

When exporting abalone, vector.location(0) sometimes returns -1. Mallet returns -1 if the index/location is not found, but I thought all locations between 0 and numLocations should actually exist?

johann-petrak commented 8 years ago

Silly mistake, I need to use vector.indexAtLocation(loc) insteand of vector.location(loc)