Here is the problem I am facing.
I need to write a sentence classification pipeline that takes a bunch of Brat files where some of the sentences have been labelled with brat tags. The pipeline takes as input a list of string which corresponds to the list of labels that the classifier must learn to apply.
My problem is that those, given the current design of BratReader, those labels have to be mapped to an annotation class. Whenever BratReader encounters a label that is not mapped to a Uima annotation, it raises an exception.
But my users do not have the ability to define new uima annotation classes. They just have the ability to create new brat labels and apply them to the files.
I was wondering if there would be a way to have unknown labels be assigned a "generic" Uima annotation class say, "Label", where getValue() of a Label would return the corresponding brat label.
Does this capability already exist?
If not, would be worth it for me to create it?
Thx.