Metadata-Version: 2.1
Name: text-selector
Version: 2.1.0
Summary: A Custom Jupyter Widget Library for selecting text and asciening tag to selected span
Home-page: https://github.com/randomunrandom/text_selector
Author: Danil Kireev
Author-email: danilunrandom@gmail.com
License: UNKNOWN
Keywords: ipython,jupyter,widgets
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: IPython
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Multimedia :: Graphics
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Description-Content-Type: text/markdown
Requires-Dist: ipywidgets (>=7.0.0)

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](https://github.com/IINemo/active_learning_toolbox/tree/seq)

Usage:
------
An example of use case can be found in [example.ipynb](https://github.com/randomunrandom/text_selector/blob/master/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}
}
```


