Skip to main content
RuMor: Russian Morphology project

Toxine: a tiny python NLP library for Russian text preprocessing

PyPI Version Python Version License: BSD-3

A part of RuMor project. It contains pipeline for preprocessing and tokenization texts in Russian. Also, it includes preliminary entity tagging. Highlights are:

  • Extracting emojis, emails, dates, phones, urls, html/xml fragments etc.
  • Tagging/removing tokens with unallowed symbols
  • Normalizing punctuation
  • Tokenization (via NLTK)
  • Russan Wikipedia tokenizer
  • brat annotations support

Installation

pip

Toxine supports Python 3.5 or later. To install it via pip, run:

$ pip install toxine

If you currently have a previous version of Toxine installed, use:

$ pip install toxine -U

From Source

Alternatively, you can also install Toxine from source of this git repository:

$ git clone https://github.com/fostroll/toxine.git
$ cd toxine
$ pip install -e .

This gives you access to examples that are not included to the PyPI package.

Setup

Toxine uses NLTK with punkt data downloaded. If you didn't do it yet, start Python interpreter and execute:

>>> import nltk
>>> nltk.download('punkt')

NB: If you plan to use methods for brat annotations renewal, you need to install the python-Levenshtein library. See more on the brat annotations support page.

Usage

Text Preprocessor

Wrapper for tokenized Wikipedia

brat annotations support

Examples

You can find them in the directory examples of our Toxine github repository.

License

Toxine is released under the BSD License. See the LICENSE file for more details.

Metadata

Release files for toxine 1.0.52

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

Source distribution (sdist)

Source distribution for toxine 1.0.52
File Size Uploaded
toxine-1.0.52.tar.gz 29.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for toxine 1.0.52
File Interpreter ABI Platform
toxine-1.0.52-py3-none-any.whl Python 3 none any Details

Total release size: 59.1 kB

Release files / toxine-1.0.52.tar.gz

Download URL toxine-1.0.52.tar.gz
Size 29.5 kB
Tags Source
SHA-256 checksum
How to use checksums
279250ac63c4fe41dab749bbf4a9d9d288c1b40ad89f8a8ad24bfd5ae64fe47d
BLAKE2b-256 checksum
How to use checksums
0b43bcdac13c164940689d6ef8965e249ed0bda4e0ed233dba8eafcbc45a1ef5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Release files / toxine-1.0.52-py3-none-any.whl

Download URL toxine-1.0.52-py3-none-any.whl
Size 29.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
773de3753814dbc43d5c4ac8be956c9ae5844a497f345fe675afc890c14e77a3
BLAKE2b-256 checksum
How to use checksums
49e1b4720450edca8c5fe352fa499160d1965c10d1885dc6716c1afdf02436bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.0.52 This release

2 release files

1.0.51

2 release files

1.0.50

2 release files

1.0.49

2 release files

1.0.48

2 release files

1.0.47

2 release files

1.0.46

2 release files

1.0.45

2 release files

1.0.44

2 release files

1.0.42

2 release files

1.0.41

2 release files

1.0.31

2 release files

1.0.30

2 release files

1.0.25

2 release files

1.0.24

2 release files

1.0.23

2 release files

1.0.22

2 release files

1.0.21

2 release files

1.0.20

2 release files

1.0.19

2 release files

1.0.18

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

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