Skip to main content
RuMor: Russian Morphology project

Corpuscula: a python NLP library for corpus processing

PyPI Version Python Version License: BSD-3

A part of RuMor project. It contains tools to simplify corpus processing. Highlights are:

  • full CoNLL-U support (includes CoNLL-U Plus)
  • wrappers for known corpora of Russian language
  • parser and wrapper for Russian part of Wikipedia
  • Corpus Dictionary that can be used for further morphology processing
  • simple database to keep named entities

Installation

pip

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

$ pip install corpuscula

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

$ pip install corpuscula -U

From Source

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

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

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

Setup

After installation, you need to specify a directory where you prefer to store downloaded corpora:

>>> import corpuscula.corpus_utils as cu
>>> cu.set_root_dir(<path>)  # We will keep corpora here

NB: it will create/update config file .rumor in your home directory.

If you won't set the root directory, Corpuscula will keep corpora in the directory where it's installed.

Usage

CoNLL-U Support

Management of Corpora

Wrapper for Wikipedia

Corpus Dictionary

Utilities

Items database

Examples

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

License

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

Metadata

Release files for corpuscula 1.0.56

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

Source distribution (sdist)

Source distribution for corpuscula 1.0.56
File Size Uploaded
corpuscula-1.0.56.tar.gz 30.2 kB Details

Built distribution (wheel)

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

Total release size: 62.3 kB

Release files / corpuscula-1.0.56.tar.gz

Download URL corpuscula-1.0.56.tar.gz
Size 30.2 kB
Tags Source
SHA-256 checksum
How to use checksums
38c15c3230f976c86b5f8732a337e68fadcb5f74d0103f40ec6fec0f6413a1a7
BLAKE2b-256 checksum
How to use checksums
050a5135585f53c4692201f286432b66b9b06c90569d877934eebfe97c8b7145
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 / corpuscula-1.0.56-py3-none-any.whl

Download URL corpuscula-1.0.56-py3-none-any.whl
Size 32.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
449cdc9f856db31985f61eca50aef40653ebcd4586057ecff1045087c78e956d
BLAKE2b-256 checksum
How to use checksums
be33667c397e98e76ebf6c6bb4b6d0a33f1d6bc499793ded77cd9b1a7a771a9c
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.56 This release

2 release files

1.0.51

2 release files

1.0.49

2 release files

1.0.48

2 release files

1.0.44

2 release files

1.0.34

2 release files

1.0.33

2 release files

1.0.32

2 release files

1.0.31

2 release files

1.0.30

2 release files

1.0.29

2 release files

1.0.28

2 release files

1.0.27

2 release files

1.0.26

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.17

2 release files

1.0.15

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

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