Hi, I ran into a problem with the CONLL converter failing due to a missing label in the annotations.
Although this is a problem with the label studio proper, it would be good for the converter to be more robust. For example, any access to the hash should use h.get('k', default) rather than h['k']. The default should allow the code to produce a reasonable approximation, as follows:
Hi, I ran into a problem with the CONLL converter failing due to a missing label in the annotations.
Although this is a problem with the label studio proper, it would be good for the converter to be more robust. For example, any access to the hash should use h.get('k', default) rather than h['k']. The default should allow the code to produce a reasonable approximation, as follows:
Alternatively, having better exception handling would be good, provided it can pinpoint the source of the error.
Here's a simple illustration:
The attached file _bad-annotation.json.txt contains an actual export with the issue.
See extract_tokens_and_tags in the attached file (misc_converter.py.txt), which is in the context of an XML-extension I am working on.
As mentioned in issue #15, this needs work before it is ready for a pull request.