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.
Use the widget with the active learning tool:
https://github.com/IINemo/active_learning_toolbox/tree/seq
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
Cite
@inproceedings{shelmanov2019bibm,
title={Active Learning with Deep Pre-trained Models for Sequence Tagging of Clinical and Biomedical Texts},
author={Artem Shelmanov and Vadim Liventsev and Danil Kireev and Nikita Khromov and Alexander Panchenko and Irina Fedulova and Dmitry V. Dylov},
booktitle={Proceedings of International Conference on Bioinformatics & Biomedicine (BIBM)},
year={2019}
}
```
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.1.0.tar.gz
(181.9 kB
view hashes)
Built Distribution
Close
Hashes for text_selector-2.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e7b4fda7e309809f99b1c342e141e08f3b17e992bce16464b4eca285e645dc8 |
|
MD5 | 4f3a4c9c72d9ae2955404ff368ad28c3 |
|
BLAKE2b-256 | f9e9d4ef4a47c5aed94f332cff382cc5010a2789f9b0dbf5bad21f8bce6d7e3a |