NER markup visualisation for Jupyter Notebook
Project description
# ipymarkup [![Build Status](https://travis-ci.org/natasha/ipymarkup.svg?branch=master)](https://travis-ci.org/natasha/ipymarkup) [![Coverage Status](https://coveralls.io/repos/github/natasha/ipymarkup/badge.svg?branch=master)](https://coveralls.io/github/natasha/ipymarkup?branch=master)
NER markup visualisation for Jupyter Notebook.
<img src="table.png"/>
# Install
`ipymarkup` supports both Python 2.7+ / 3.4+, non Jupyter functionality should work on 2.7+ / 3.3+, PyPy but not tested
```bash
$ pip install ipymarkup
```
# Usage
```python
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](http://nbviewer.jupyter.org/github/natasha/ipymarkup/blob/master/docs.ipynb).
# License
Source code of `ipymarkup` is distributed under MIT license (allows modification and commercial usage)
# Support
- Chat — https://telegram.me/natural_language_processing
- Issues — https://github.com/natasha/ipymarkup/issues
NER markup visualisation for Jupyter Notebook.
<img src="table.png"/>
# Install
`ipymarkup` supports both Python 2.7+ / 3.4+, non Jupyter functionality should work on 2.7+ / 3.3+, PyPy but not tested
```bash
$ pip install ipymarkup
```
# Usage
```python
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](http://nbviewer.jupyter.org/github/natasha/ipymarkup/blob/master/docs.ipynb).
# License
Source code of `ipymarkup` is distributed under MIT license (allows modification and commercial usage)
# Support
- Chat — https://telegram.me/natural_language_processing
- Issues — https://github.com/natasha/ipymarkup/issues
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file ipymarkup-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: ipymarkup-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f968ea9617190b07b316095398b618a24a7a0410f6281091826f7d58223538 |
|
MD5 | 0a527f8765f82c0d752ac3cb61ecdc94 |
|
BLAKE2b-256 | 3309393c684018afe75f8324511715be7328e0d3bcdba24ea8fa64072737df34 |