CoreNLP icon indicating copy to clipboard operation
CoreNLP copied to clipboard

How should I render a visualization html in the demo style(http://corenlp.run/)?

Open hshsilver opened this issue 5 years ago • 2 comments

I love the cool visualization of NER results from http://corenlp.run/ I want to change some part of it but do not know whether there are some API docs. For example, just highlight some kinds of NER label. Thanks for your reply~

hshsilver avatar Aug 19 '19 06:08 hshsilver

Seems like brat tool was used to produce these visualisations. They have a guide about how to embed the visualisations into a page, using JavaScript.

To me, the markup brat produces looks pretty sensible, for instance, different NER labels have different classes (span_ORGANIZATION and span_PERSON). You should be able to achieve what you need by overriding CSS for particular classes.

alexey-tarasov-irl avatar Aug 23 '19 10:08 alexey-tarasov-irl

Seems like brat tool was used to produce these visualisations. They have a guide about how to embed the visualisations into a page, using JavaScript.

To me, the markup brat produces looks pretty sensible, for instance, different NER labels have different classes (span_ORGANIZATION and span_PERSON). You should be able to achieve what you need by overriding CSS for particular classes.

Thanks for your reply~It's pretty useful.

hshsilver avatar Aug 26 '19 06:08 hshsilver