Skip to main content

NER markup visualisation for Jupyter Notebook

Project description

NER markup visualisation for Jupyter Notebook.

from ipymarkup import Span, AsciiMarkup

text = 'a d a b a a a b c c c f d'
spans = [
  Span(0, 13, 'a'),
  Span(2, 25, 'd'),
  Span(6, 15, 'b'),
  Span(16, 21, 'c'),
  Span(22, 23, 'f'),
]
AsciiMarkup(text, spans)

>>> a d a b a a a b c c c f d
... a------------ c---- f
... d----------------------
... b--------

For more examples and explanation see ipymarkup documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ipymarkup-0.5.0-py2.py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page