Open Shimorina opened 3 years ago
Apparently this bug was introduced in the recent commit https://github.com/nlplab/brat/commit/cf786c74a3bc317156a0ea2faba718eb434c325c.
If the following line is modified by removing the second tab, the code works. https://github.com/nlplab/brat/blob/23f8ffb996051f5139280c24cd851f29f2afa273/server/src/annotation.py#L1657
Should be:
return u'%s\t%s %s %s:%s%s' % (
Hello!
Thank you for the tool!
I noticed that brat server crashes when I tried to load the annotation for normalisation (e.g.,
N1
in the example file here https://github.com/nlplab/brat/blob/master/example-data/tutorials/news/000-introduction.ann ). I don't modify the file; I try to load it as an example.What causes the error is that brat modifies the file when it reads it, and an additional tab is added between the second and the third column:
Initial annotation file:
N1\tReference T5 Wikipedia:64488\tCarlos Salinas de Gortari
After modification:
N1\tReference T5 Wikipedia:64488\t\tCarlos Salinas de Gortari
This problem occurs only with normalisation annotation. All others are fine. When I remove the write permissions from server users, the problem disappears, and the normalisation annotations are correctly displayed.
The error log:
Tested with both
standalone.py
and installation on server with the master branch of the repository.