Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded brat visualization #1371

Open
DDDurrant opened this issue Mar 11, 2021 · 0 comments
Open

Embedded brat visualization #1371

DDDurrant opened this issue Mar 11, 2021 · 0 comments

Comments

@DDDurrant
Copy link

DDDurrant commented Mar 11, 2021

I am working with brat visualization as demonstrated here http://brat.nlplab.org/embed.html. If this isn't the right place to post this, then please point me in the right direction.

The issue is when a user inputs something that resembles an html self closing tag <hr/> it will convert it to <hr></hr> It doesn't even need to actually match an existing tag. It only needs to have "<" followed by any series of caricatures, then end with "/>". Patterns I have tried "" "<a:a/>" "<a:a a/>". they each come out as such "", "<a:a></a:a>", "<a:a a></a:a>". I have tested this behavior in chrome, firefox, and safari.

This wouldn't be a big deal, but it shifts all the annotations off by however many characters are added to the text. I didn't read anywhere that documents this behavior. I have noticed that when I try it on https://corenlp.run/ that also uses brat visualization, it doesn't follow this same behavior. Is there some setting that I need to add, or do I need to manipulate the text so that it doesn't see it as html?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant