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

LF_ClassificationApplication shows an odd message about training. #14

Closed johann-petrak closed 8 years ago

johann-petrak commented 8 years ago

The message about no documents seen and training not possible shown incorrectly:

Processing finished, but got an error or no documents seen, cannot train!
johann-petrak commented 8 years ago

Turns out this message really comes from a training PR which was added to the same conditional controller, but turned off. The problem here is that the traffic lights in a conditional pipeline only prevent the execute() invocation but not the controller started/finished/aborted invocation, so the finished callback of the disabled training PR is still invoked. The PR has no way to know if this got invoked from a disabled PR or if it really did not see any documents. For now we will fix the message to indicate that it comes from the disabled PR.

johann-petrak commented 8 years ago

Fixed by 8b127e3bbbe54e6425b549b10b10db49a0e4ea15