Open enoriega opened 11 months ago
@enoriega, this is being built for both Scala 2.11 and 2.12. The earlier version does not like trailing/dangling commas like the ones in TrainingDataExporter, so it doesn't compile. One can use ++compile
or ++2.11.12
and then compile
to test.
That TrainingDataExporter still needs a comma removed at line 76 in order to work on Scala 2.11.
Summary
Added a new output format suitable to train classifiers using a python pipeline. It "flattens" activations and regulations and creates a json array with the tokens, spans, label and polarity for each event.
Example