0

When I am trying to annotate multiple lines in Brat, it throws me the following error:

enter image description here

What does this error trace mean/say? Also, is this is an expected behavior?

How does one annotate multiple lines in Brat?

Dawny33
  • 10,543
  • 21
  • 82
  • 134
  • You have not provided a [mcve] so I cannot be sure, but it is likely you are running an old version of brat, and crashing into one of the fixed bugs. Try to get brat directly by github clone; use `python2` branch for Python 2, or `master` for Python 3. However, note that brat was not originally designed to mark multi-line spans, and will join the lines in visualisation. – Amadan Sep 25 '18 at 02:18
  • @Amadan I am currently running v1.3 itself, which happens to be the latest version. When trying to annotate multiple lines, it either throws me the above error, or collapses into a tiny span whose text is not visible – Dawny33 Sep 25 '18 at 02:22
  • 1
    1.3 is the latest _packaged_ version. We did a lot of improvements and bugfixes that never got into that package, so that the only way (for now) to get the latest version is by `git clone` (not github clone, lol, that's a typo). We are considering releasing an updated package sometime later this year, since it's been abominably long. Suffice it to say, I cannot reproduce your error on my end. – Amadan Sep 25 '18 at 02:28
  • @Amadan Added the test file here: https://github.com/nlplab/brat/issues/1285 – Dawny33 Sep 25 '18 at 02:40
  • 1
    Tested with test file. You can find the result at the same location. – Amadan Sep 25 '18 at 02:47

2 Answers2

1

I think you cannot on Brat v 1.3. But here is a possible workaround, for occasional use. Replace the period in the text by a character which is not in the list of special characters understood by Brat. I use myself the interpunct (middot):

·

This is a second best for sure, but it works. I also tried the 'combining dot below' on a space or on a period on one of Brat's demo files, but Brat does not accept it (maybe because it's a "long" UTF-8 character?). If you don't care much about changing the text, then ";" and ":" work too.

mayeulk
  • 100
  • 8
0

There may be permission/ access problem in your data or work folder. you may try putting your data into the data/example folder