Redirect NLP Tool Output To Debugger
When NLP'f Maven plugin trains NLP tool they often provide many log messages which are only interesting while debugging the tool, for example, the log contains OpenNLP's debug message:
[INFO] Starting to train with OpenNLP Named Entity Recognizer Trainer
Indexing events with TwoPass using cutoff of 0
Computing event counts... done. 1146 events
Indexing... done.
Collecting events... Done indexing in 13,93 s.
Incorporating indexed data for training...
done.
Number of Event Tokens: 1146
Number of Outcomes: 5
Number of Predicates: 6030
Computing model parameters...
Performing 300 iterations.
1: . (1115/1146) 0.9729493891797557
2: . (1134/1146) 0.9895287958115183
3: . (1139/1146) 0.993891797556719
4: . (1140/1146) 0.9947643979057592
5: . (1144/1146) 0.9982547993019197
6: . (1144/1146) 0.9982547993019197
7: . (1144/1146) 0.9982547993019197
8: . (1144/1146) 0.9982547993019197
Stopping: change in training set accuracy less than 1.0E-5
Stats: (1144/1146) 0.9982547993019197
...done.
Compressed 6030 parameters to 451
13 outcome patterns
These log messages should be redirected to Mavens log framework.