Skip to main content

Natural language understanding system

Project description

# Montague

[![Build Status](https://travis-ci.com/iafisher/montague.png)](https://travis-ci.com/iafisher/montague)

A natural-language understanding system.

Montague differs from most NLU systems in that is uses formal semantics rather than machine learning 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. Finally, 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 `shell $ pip3 install montague-nlu `

Alternatively, you can install a development version with setup.py:

`shell $ 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:

`shell $ 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 not in its lexicon.

  • Important modules of formal semantics, like plurality, tense, aspect, theta roles, intensionality, and indexicals, have yet to be implemented.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

montague-nlu-0.1.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

montague_nlu-0.1.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file montague-nlu-0.1.1.tar.gz.

File metadata

  • Download URL: montague-nlu-0.1.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using 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.6

File hashes

Hashes for montague-nlu-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9dd5c1758b6aa8ea9b22b4d0d73905122265a01a02b40ce50fceb2b2faa9f3b9
MD5 88a1e13d2dd4cdb058ac29de4d8dc914
BLAKE2b-256 c1a581095682a1d8c08d8e9acdcb79b23fef2558ddbb13c89cb9bf08d5653339

See more details on using hashes here.

Provenance

File details

Details for the file montague_nlu-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: montague_nlu-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using 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.6

File hashes

Hashes for montague_nlu-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0728bc01f9a82aa156119862d5562deef284073614bbc6e797e14b550729a9e4
MD5 8c4ab22bb370a46638917023e082e5e4
BLAKE2b-256 791f89d86de0e4d9dbe2ac1286549fdc2083f946143e867670bfc1bf647d7c41

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page