spsim
spsim is a Python 3 module that implements a spelling similarity measure for identifying cognates across languages, taking into account spelling differences that are characteristic of each language pair, as described in [Gomes2011].
Note: in the examples below, $ denotes the Bash prompt and a Linux, MacOs or similar *nix environment is assumed.
Install as usual:
$ pip3 install spsim
Example command line usage:
$ # first let's get some pairs of words that may be cognates: $ wget http://research.variancia.com/spsim/maybe_enpt.txt $ cat maybe_enpt.txt pharmacy farmácia arithmetic aritmética $ # If we don't give any example cognates, SpSim will be equivalent to $ # 1 - edit_distance / max_len_of_strings $ # Note that by default spsim matches accentuated characters, i.e. a == á $ echo "" > empty.txt $ spsim empty.txt maybe_enpt.txt pharmacy farmácia 0.5 arithmetic aritmética 0.8 $ now let's get some example cognates: $ wget http://research.variancia.com/spsim/examples_enpt.txt $ cat examples_enpt.txt alcohol álcool alpha alfa anomaly anomalia mathematics matemática methodology metodologia metric métrica morphine morfina photos fotos $ # by giving these examples to spsim, it will learn to ignore certain differences: $ spsim examples_enpt.txt maybe_enpt.txt pharmacy farmácia 1.0 arithmetic aritmética 1.0
Measuring Spelling Similarity for Cognate Identification, Luís Gomes and Gabriel Pereira Lopes in Progress in Artificial Intelligence, 15th Portuguese Conference in Artificial Intelligence, EPIA 2011, Lisboa, Portugal, October 2011, http://www.springerlink.com/content/gtl56j3l06906020/
Metadata
Release files for spsim 0.1.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 |
|---|---|---|---|---|
| spsim-0.1.2.tar.gz | 6.0 kB | Without provenance | Details for spsim-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spsim-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for spsim-0.1.2-py3-none-any.whl |
Total release size: 14.5 kB
Release files / spsim-0.1.2.tar.gz
| Download URL | spsim-0.1.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94675d3f7bda25736c78ad9e4edc46ae8b5d3f13fd5f65b4e5bb2766e95b3d05
|
|
BLAKE2b-256 checksum How to use checksums |
d0f231daa2857219050642144414ec57f04276da043d0024c1022c7647398d6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / spsim-0.1.2-py3-none-any.whl
| Download URL | spsim-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9665ba72f264276755791a97962f9daa1659e321add37563210c8942c9789ba9
|
|
BLAKE2b-256 checksum How to use checksums |
a5a8642e38b3ff64c6a3467463b1ae6ce94069e008b5028d0ff6f7f5250c5247
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for spsim 0.1.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.