Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

allennlp-semparse

Build status codecov

A framework for building semantic parsers (including neural module networks) with AllenNLP, built by the authors of AllenNLP

Supported datasets

  • ATIS
  • Text2SQL
  • NLVR
  • WikiTableQuestions

Supported models

  • Grammar-based decoding models, following the parser originally introduced in Neural Semantic Parsing with Type Constraints for Semi-Structured Tables. The models that are currently checked in are all based on this parser, applied to various datasets.
  • Neural module networks. We don't have models checked in for this yet, but DomainLanguage supports defining them, and we will add some models to the repo once papers go through peer review. The code is slow (batching is hard), but it works.

Tutorials

Coming sometime in the future... You can look at this old tutorial, but the part about using NLTK to define a grammar is outdated. Now you can use DomainLanguage to define a python executor, and we analyze the type annotations in the functions in that executor to automatically infer a grammar for you. It is much easier to use than it used to be. Until we get around to writing a better tutorial for this, the best way to get started using this is to look at some examples. The simplest is the Arithmetic language in the DomainLanguage test (there's also a bit of description in the DomainLanguage docstring). After looking at those, you can look at more complex (real) examples in the domain_languages module. Note that the executor you define can have learned parameters, making it a neural module network. The best place to get an example of that is currently this unfinished implementation of N2NMNs on the CLEVR dataset. We'll have more examples of doing this in the not-too-distant future.

Download files

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

Source Distribution

allennlp_semparse-0.0.1rc1.tar.gz (165.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

allennlp_semparse-0.0.1rc1-py3-none-any.whl (222.7 kB view details)

Uploaded Python 3

File details

Details for the file allennlp_semparse-0.0.1rc1.tar.gz.

File metadata

  • Download URL: allennlp_semparse-0.0.1rc1.tar.gz
  • Upload date:
  • Size: 165.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for allennlp_semparse-0.0.1rc1.tar.gz
Algorithm Hash digest
SHA256 fa2e39ad08f41123a6c1b0d9f2665d667e67879e3d8bb6411f91ca32061a3b36
MD5 b9225ee4b697132c2e812683675192f5
BLAKE2b-256 d932fcca937f10ff3473b3cca551313247963989bce45f5124ce16ed5480857b

See more details on using hashes here.

File details

Details for the file allennlp_semparse-0.0.1rc1-py3-none-any.whl.

File metadata

  • Download URL: allennlp_semparse-0.0.1rc1-py3-none-any.whl
  • Upload date:
  • Size: 222.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for allennlp_semparse-0.0.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 64f45611de718d60346a495c041eb2802739950ee15cf53de39683905fd5fee6
MD5 4eed9f2583afb2a7c34cde9b26d3612e
BLAKE2b-256 06b756844ebe8fe32fab132b999d73ca10ba075277e1b723fc753977dc98fb6e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

This release

0.0.1rc1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page