Closed alaindesilets closed 5 years ago
@alaindesilets would you like to do a PR? (see contribution guidelines)
Sure. I'll see about getting a contribution agreement in place from my employer.
On Thu, Jun 6, 2019 at 2:43 AM Richard Eckart de Castilho < notifications@github.com> wrote:
@alaindesilets https://github.com/alaindesilets would you like to do a PR? (see contribution guidelines https://dkpro.github.io/contributing/)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dkpro/dkpro-core/issues/1378?email_source=notifications&email_token=AAIMA4BREXOP2N6PNWIRMNLPZCWZFA5CNFSM4HT2BFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXB4RDA#issuecomment-499370124, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIMA4EWCRKJL3AQEQDPHOTPZCWZFANCNFSM4HT2BFFQ .
Hum... it sounds like it would take weeks to have the corporate contribution agreement signed by the NRC president. Probably best if you guys do the change yourselves.
On Thu, Jun 6, 2019 at 9:05 AM Alain Désilets alaindesilets0@gmail.com wrote:
Sure. I'll see about getting a contribution agreement in place from my employer.
On Thu, Jun 6, 2019 at 2:43 AM Richard Eckart de Castilho < notifications@github.com> wrote:
@alaindesilets https://github.com/alaindesilets would you like to do a PR? (see contribution guidelines https://dkpro.github.io/contributing/)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dkpro/dkpro-core/issues/1378?email_source=notifications&email_token=AAIMA4BREXOP2N6PNWIRMNLPZCWZFA5CNFSM4HT2BFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXB4RDA#issuecomment-499370124, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIMA4EWCRKJL3AQEQDPHOTPZCWZFANCNFSM4HT2BFFQ .
Use the attached Maven project to reproduce the bug: TestBratNewlineBug.zip
Run the
ReadBrat
program, feeding it the path to thedocs
directory (als on contained in the Maven project).You will then get the following exception:
This bug has been found to occur on both OSX and Windows.
The problem occurs on line 132 in BratTextAnnotation. It references offsetsList.get(i - 1), but such an index doesn't exist since nothing was added to offsetsList in the previous loop.
The solution might be to replace
with
We have tested this fix on a cloned version of dkpro-core and it seems to do the trick.