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

Check desired vs. actual behaviour if both target feature and annotation type parms are missing #39

Open johann-petrak opened 8 years ago

johann-petrak commented 8 years ago

Re-check what the intended behaviour is when combinations of the optional parameters are missing.

There seems to be a bug in the EvaluateClassification PR when both classAnnotationType and targetFeature are missing: this PR is supposed to also support sequence tagging (unlike the classification PR).
At least in cases when it is really a classification problem, leaving the two parameters empty throws an array out of bounds exception rather than showing some reasonable error message.