Analogy is an experimental open source project for Natural Language Processing. It aims to perform 2 newly introduced NLP tasks: word comparison and sentence comparison.
Analogy provides semantic similiarity and differences between two pieces of text. Text can be in the form of a word or a sentence.
A pretrained model is released to get started. You can also retrain upon an existing model.
Getting Started:
Prerequisites: Python 3.0 or higher Stanford Core NLP (3.9.2)
Installing:
pip install analogy
Read instructions on how to install and run stanford corenlp server.
Analogy functions:
- findComparison(model, word1, word2)
- findSentenceComparison(model, sentence1, sentence2)
- trainModel(sentences) #Input is list of sentences
- retrainModel(model, sentences)
- saveModel(name, model) #Be sure to add '.npz' at last
- loadModel(name)
Example:
findComparison(model, "apple", "orange")
Output:
Word1 = apple Word2 = orange Similiarity = fruit
Metadata
Release files for Analogy 0.1
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 | |
|---|---|---|---|---|
| Analogy-0.1.tar.gz | 7.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Analogy-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.4 kB
Release files / Analogy-0.1.tar.gz
| Download URL | Analogy-0.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee86f55c812bf17847d9020d3b948a8259000a5a56f82d8ba33999e5be48f53c
|
|
BLAKE2b-256 checksum How to use checksums |
b8cbe3c384ee4041872197cb35ff33b53f70f9ef0a9f57062e877597d3267fd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
|
Release files / Analogy-0.1-py3-none-any.whl
| Download URL | Analogy-0.1-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4ce02f9e305dfebcf3a8b7870ffa3af03fb7f7ec6a8d7b7d549c8dca146821a
|
|
BLAKE2b-256 checksum How to use checksums |
4dc2dd33758b97a76e86de3b6650b7f98d8e063955cdaa73dc4ef26ff573522b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
|
Security for Analogy 0.1
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.