Hi,
Offhand I would say that this is a fairly specialized kind of plot. I do think you could make a bokeh app or plot that did most of this, but I do not think it would be trivial. However it’s worth nothing that at present Bokeh does not support directed graphs, or arrows with “curved” tails, so that might be a showstopper for the time being. In any case, since the actual size of text labels is really only available in the client/browser, and not in python, to really make a completely general solution that lay things out automatically with enough space between, etc. would requite making a custom extension that could access the text sizes. Essentially, this kind of thing seems like a nice candidate for a separate project built on top of Bokeh that caters to the specialized use-cases of the NLP community. If you are interested in embarking on that kind of work, I am happy to provide more guidance and information.
Thanks,
Bryan
On Apr 29, 2018, at 12:43, danyal.khashabi@gmail.com wrote:
Anyone know of examples for text annotation visualization?
Here is an example from here: http://nlp.cogcomp.org/
Basically, the goal is to create such graphs (text, some spans, and their edges), for a given text and its annotation on the fly.
If you have something like this, better to make it more explicit and highlight it, since this would bring so attention from AI and Natural Language Processing community to your library.
Daniel
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/410e5c04-95dd-4c62-ab2a-8e13fc6d9ed0%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/BC73EB97-7A74-4DEC-8BCC-2A5701938220%40anaconda.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.