Skip to main content

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.

The result is represented via widgets public field res. It can be in 1 of 3 states:

  1. Empty: nobody selected anything in widget
  2. Containing string of None: text doesn't contain any squences and user checked this widget as "Done"
  3. Containing dicts with selected sequences

Installation

To install this extension simply run folowing comands:

$ pip install text_selector
$ jupyter nbextension enable --py --sys-prefix text_selector

To install for jupyterlab

$ jupyter labextension install text_selector

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
$ jupyter labextension install js

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}
}


Metadata

Release files for text-selector 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text-selector 2.3.0
File Size Uploaded Provenance Actions
text_selector-2.3.0.tar.gz 185.6 kB Without provenance Details for text_selector-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for text-selector 2.3.0
File Interpreter ABI Platform Actions
text_selector-2.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for text_selector-2.3.0-py2.py3-none-any.whl

Total release size: 552.6 kB

Release files / text_selector-2.3.0.tar.gz

Download URL text_selector-2.3.0.tar.gz
Size 185.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b2edfb26e92d176ab36abf6c919a4a49bb702c832ce4b1a2eeb15390d52af92e
BLAKE2b-256 checksum
How to use checksums
2ed5766348dc635699902333720bee478cbc93ef91e558a8b9b1325d83962151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Release files / text_selector-2.3.0-py2.py3-none-any.whl

Download URL text_selector-2.3.0-py2.py3-none-any.whl
Size 367.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
30342b43e3518e69af8479c74e37d6c02c7f8fdc0b85e897924735259efcdd8c
BLAKE2b-256 checksum
How to use checksums
24383a3a75fb7e38f92ffb828d56205e1b3f9b0784b3d2646ee48a648f0cbdba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Security for text-selector 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page