madai
Compute difference between two corpus by using chi2. Implementation is based on Measures for Corpus Similarity and Homogeneity.
I am not fully sure if this implementation is perfectly follow this paper. Feel free to make issues to point out some problems if you find.
Installation
pip install madai
Usage
madai implements two ways of computing similarity between two corpus, chi2 and spearman. Use spearman when two corpus are different in size.
Two target corpus need to be text files, each line containing one document/sentence.
madai chi2 /path/to/corpus/a /path/to/corpus/b
# or
madai spearman /path/to/corpus/a /path/to/corpus/b
To view parameters, run,
madai --help
Metadata
Release files for madai 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| madai-0.2.2.tar.gz | 4.4 kB | Without provenance | Details for madai-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| madai-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for madai-0.2.2-py3-none-any.whl |
Total release size: 9.9 kB
Release files / madai-0.2.2.tar.gz
| Download URL | madai-0.2.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3679f2835f358ec6bf17c79650beaba3e9e26152131fa2472446c442c4ad747
|
|
BLAKE2b-256 checksum How to use checksums |
ff14b8a281e3510b24a6f96aee647ac4a93db5ca2503f5887e2cb4248d7a8270
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.5 Darwin/22.4.0
|
Release files / madai-0.2.2-py3-none-any.whl
| Download URL | madai-0.2.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fbed4617e97723ec1c72cbd5fd3b2a05d70f9bd97731b9dcbf374b8c788a40b
|
|
BLAKE2b-256 checksum How to use checksums |
526988dddb9f5a3a2a5f7314e8ca93ddfb46ddd9a79a51895148435166c8de37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.5 Darwin/22.4.0
|
Security for madai 0.2.2
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.