No project description provided
Project description
PyFCG
A Python interface to FCG and Babel, built on FCG Go.
Installation
To install this package from PyPI, run the following command.
pip install pyfcg
Use
Start a PyFCG session with:
import pyfcg as fcg
fcg.init(port=9600)
This starts up FCG Go, listening at port 9600.
Then:
fcg.load_demo_grammar()
fcg.start_web_interface(port=8010,open=True)
fcg.activate_monitors(['trace-fcg'])
fcg.comprehend("the linguist likes the mouse", grammar='*fcg-constructions*')
And you can enjoy everything at http://localhost:8010 !
Documentation
Full documentation of this package, including examples can be found on pyfcg.readthedocs.io.
Project details
Release history Release notifications | RSS feed
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 pyfcg-0.1b1.tar.gz.
File metadata
- Download URL: pyfcg-0.1b1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01aea941039911406d215896fcfeb2ddebf510db03c0f8486620bf959d566830
|
|
| MD5 |
689548cbec9fe4fd05147846cc15c2fd
|
|
| BLAKE2b-256 |
b1348cda553a71942a09e5dfe17abba77a272adde56437d20cd52b994a87cba6
|
File details
Details for the file pyfcg-0.1b1-py3-none-any.whl.
File metadata
- Download URL: pyfcg-0.1b1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35537c7c4e6309bbc96c02545fd719d5c8c5ef9f32a64eec897a1898eafacab8
|
|
| MD5 |
ab22419d289455373fc030d667be6d49
|
|
| BLAKE2b-256 |
9dbee1b88ebeaa0545d8c6b434a8eb4fa4fa2aad5efa9ab4966757862f3d386c
|