dendro_text
Draw a dendrogram of similarity between text files.
The similarity is measured in terms of Levenshtein edit distance. The distance between given two texts is a count of inserted, deleted, and substituted characters required to modify one text to the other. A smaller value means that the two texts are more similar.
Features:
-
Parallel execution: Supports execution on multiple CPU cores. Plus, jit compilation by Numba (v1.6+).
-
Options in tokenization: By default, the text is compared with a sequence of words extracted by splitting input text into different character types. Optionally, you can compare texts line by line, character by character, or token by token as extracted with lexical analyzers of programming languages.
-
File-centric search: A function to list files in order of similarity to a given file.
-
Diff (Experimental): Diff functionality to show textual differences between files. (This function is provided to check for differences in similarity calculations depending on tokenization.)
Installation
pipx install dendro-text
To uninstall,
pipx uninstall dendro-text
Metadata
Release files for dendro_text 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dendro_text-2.0.3.tar.gz | 25.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dendro_text-2.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.7 kB
Release files / dendro_text-2.0.3.tar.gz
| Download URL | dendro_text-2.0.3.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca53f52020bf53e6cd11b47db8cfbb74b4d42f31f91302d402c4727a18f61b48
|
|
BLAKE2b-256 checksum How to use checksums |
8ce942f3594aa134a0e889667ed8a6c34dcffa7307bb9de1673b59d4bb4e105f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.17.1 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-28-generic"}} HTTPX2/2.3.0
|
Release files / dendro_text-2.0.3-py3-none-any.whl
| Download URL | dendro_text-2.0.3-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c731f8127a51507e1c9f19eda19b78fe6128e8b636a34ad586ba00249aec7fa
|
|
BLAKE2b-256 checksum How to use checksums |
1449945204817c83dde2d45da10b1405f046a967df6d894435dfd479ad859791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.17.1 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-28-generic"}} HTTPX2/2.3.0
|