Skip to main content

Russian Words Clusters

Russian Words Clusters offers a way to cluster russian words by criterias (by a common stem, by the closeness of vowels or consonants).

For now it supports verbs but was not built for clusterings words that may have different suffixes, as would be a noun and an adjective of a same stem.

It offers options:

  • to merge clusters built on different criterias
  • to input words pairs, useful for clustering verbs and their aspects

The clustering algorithm can be used either with the CLI or with the class's methods.

Simple example: clustering verbs by stem and vowel transformation

Content of file1:

выстрелить
отличать
застрелить
отличить

python3.8 clustering.py --input file1 --criterias STEM TRANS --merge

выстрелить
застрелить
отличать
отличить

Usage

CLI

The CLI clustering.py offers the possibility to cluster words and words pairs.

Classes

Classes in clustering.py can be called to cluster words. As for usage examples, you can refer to the code in the Main part of clustering.py, or to the code contained in the tests folder.

Project has a pip package: https://pypi.org/project/russian-words-clusters/
Once the package installed you can import classes into your Python code using from russianwords.clustering import *.

A more complex example: clustering words pairs

Content of file2:

посещать/посетить
разделять
разбираться/разобраться
выделиться/выделить
изменять/изменить
выделяться/выделять

python3.8 clustering.py --input file2 --criterias STEM TRANS --merge --are-pairs

посещать/посетить
разделять
выделяться/выделять
выделиться/выделить
разбираться/разобраться
изменять/изменить

Metadata

Release files for RussianWordsClusters 0.0.10

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

Source distribution (sdist)

Source distribution for RussianWordsClusters 0.0.10
File Size Uploaded
RussianWordsClusters-0.0.10.tar.gz 7.2 kB Details

Built distribution (wheel)

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

Total release size: 30.1 kB

Release files / RussianWordsClusters-0.0.10.tar.gz

Download URL RussianWordsClusters-0.0.10.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ae816d73af642c6fd36fd49f5ab6fda47f84d9307832ee2f71bc44233db8f727
BLAKE2b-256 checksum
How to use checksums
1c03ca46f51f54485929bfad60ee5d1586f06e0fcb413e6e372a3abaeacead36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Release files / RussianWordsClusters-0.0.10-py3-none-any.whl

Download URL RussianWordsClusters-0.0.10-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd7760ccbd4b59a21ea5e2fc7b49006b3be8f7c2f5d2d7071f03b18280d69f16
BLAKE2b-256 checksum
How to use checksums
96b2f2c1ea99ca1f8f60e3eef7669f411416ff39f228b74ff622eada854f18bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

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