Montague
An experimental natural-language understanding system.
Unlike conventional, machine-learning NLU systems, Montague uses formal semantics to interpret English sentences.
When Montague reads a sentence, it looks up each word in its lexicon to assign it a meaning in its logical language (an extension of first-order logic). Then, it recursively combines the words into phrases and computes the meaning of each phrase. When the sentence has been translated into a logical formula, Montague evaluates the formula against its model of the world to determine its truth value.
Installation
$ pip3 install montague-nlu
Alternatively, you can install a development version with setup.py:
$ git clone https://github.com/iafisher/montague.git
$ python3 setup.py develop --user
Once you do so, you can play with Montague's command-line interface:
$ montague
Limitations
The Montague system is still in early beta and suffers from many limitations.
- Montague has no knowledge of syntax. Its only criterion for grouping two phrases is whether they are linearly adjacent and whether their types are compatible. This leads Montague to interpret nonsense sentences like "Every good is child."
- Montague will fail to interpret a sentence if it contains a word that is not in its lexicon.
- Important modules of formal semantics, like plurality, tense, aspect, theta roles, intensionality, and indexicals, have yet to be implemented.
Metadata
Release files for montague-nlu 0.1.6
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 |
|---|---|---|---|---|
| montague-nlu-0.1.6.tar.gz | 12.8 kB | Without provenance | Details for montague-nlu-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| montague_nlu-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for montague_nlu-0.1.6-py3-none-any.whl |
Total release size: 31.9 kB
Release files / montague-nlu-0.1.6.tar.gz
| Download URL | montague-nlu-0.1.6.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f48741e23296f0e0a714d46b6c40e2dfc55e3af46bea103bff97af5bfa88c938
|
|
BLAKE2b-256 checksum How to use checksums |
78f576138a160ad3ab5c53ad7f68ab5b127437095b9620a3ed0baddae2336e50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / montague_nlu-0.1.6-py3-none-any.whl
| Download URL | montague_nlu-0.1.6-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f6f3c9a2dce05d1e2bcb2099b73d5303bc1689edd609cb976d9e0f9f9916565
|
|
BLAKE2b-256 checksum How to use checksums |
44770ff048fc0e29ee7b0371520156ed1b237aeb967c852fb44ce3f63df2c026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for montague-nlu 0.1.6
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.