A Custom Jupyter Widget Library for selecting text and asciening tag to selected span
Project description
text_selector
A Custom Jupyter Widget for selecting part of text and assingning it one of tags.
Usage:
An example of use case can be found in example.ipynb Note^ if you have less than 10 tags you don't need to pass colors, otherwise you have too.
Installation
For a development installation (requires npm) run in terminal:
$ git clone https://github.com/randomunrandom/text_selector.git
$ cd text_selector
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix text_selector
$ jupyter nbextension enable --py --sys-prefix text_selector
Docker
To create and start docker container run:
$ git clone https://github.com/randomunrandom/text_selector.git
$ cd text_selector
$ docker build -t text_selector .
$ docker run -p 8888:8888 -it --rm --name text_selector text_selector
if port 8888 is occupied change ${port} to any available port
$ docker run -p ${port}:8888 -it --rm --name text_selector text_selector
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
text_selector-2.0.7.tar.gz
(181.3 kB
view hashes)
Built Distribution
Close
Hashes for text_selector-2.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79f1f346b918ab30815cb361a3d2d746461e7626e33a7db08ccd3738beffec4 |
|
MD5 | 03af5231f52bbcc77a44c786787e6a6b |
|
BLAKE2b-256 | 59f90f67d363af1e826a067b5a8ea904d5b7d0ace9470b286f0a4b4c9ee5ca11 |