Python port of DyLan Dynamic Syntax + TTR (parser core)
Project description
dynamicsyntax
Python 3.13 port of the DyLan Dynamic Syntax parser core (Java qmul.ds). PyPI distribution name: dynamicsyntax.
Install (from PyPI)
pip install dynamicsyntax
Quick API (bundled 2015-english-ttr grammar when using backend="ttr"):
import dynamicsyntax as ds
semantics = ds.parse("a man arrives", "ttr")
print(semantics)
The low-level implementation modules live under dylan (for example InteractiveContextParser, TTRRecordType); import dylan remains supported for advanced use.
Optional extras: pip install dynamicsyntax[gui] (Flet desktop), [nlp], [viz].
Console entry points: dylan-gui and dynamicsyntax-gui (same app).
Install (development)
cd dynamicsyntax
uv sync
uv run pytest
Optional NLP tokenizers:
uv sync --extra nlp
Scope
- Working parser path: grammar/lexicon resource loading,
InteractiveContextParser,parseUtterance, and thedynamicsyntax.parsefacade over a bundled grammar snapshot. - Not ported: probabilistic generators,
Feature, learner GUI stack.
Publishing (maintainers)
uv build
uv publish # requires PyPI API token; try TestPyPI first with --publish-url
License
DyLan upstream license applies to ported logic; see LICENSE if copied from the Java project.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dynamicsyntax-0.1.1.tar.gz.
File metadata
- Download URL: dynamicsyntax-0.1.1.tar.gz
- Upload date:
- Size: 91.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
909140c89dbdf4fe97cd3f4404666c17b82a3aab0989818e57c5353c1d5c3f01
|
|
| MD5 |
acbcd18aaa9d58da399a08ce1103ae40
|
|
| BLAKE2b-256 |
1fde6625d0bf1d18b6cd37ec052b67a9b33569e8734e16510feafc22012a35b9
|
File details
Details for the file dynamicsyntax-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dynamicsyntax-0.1.1-py3-none-any.whl
- Upload date:
- Size: 121.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00df64a4bc70b272dfa26f85afc8636a3507e34968dac51b15f4d76ca65d41ee
|
|
| MD5 |
78629b0bb681ff2032d6dba202a2871a
|
|
| BLAKE2b-256 |
00e0de3c0c79a3524d85cffaa78fc6585bb01cf41d8fd40cc5087d83d08a41aa
|