Grammar
Grammar is a Python library for natural language processing.
Installation
You can use pip to install grammar.
pip install grammar
Dependencies
Grammar uses Vineyard and Graphviz to visualize graphs of the document.
Usage
Creating a Document
from grammar import Document
# create document
document = Document("He also begat and brought up five pairs of male children.")
Entity Graph
display(document.entity_graph.render())
Document Graph
display(document.graph.render())
Masking
Release files for grammar 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 | |
|---|---|---|---|
| grammar-1.6.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| grammar-1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.5 kB
Release files / grammar-1.6.tar.gz
| Download URL | grammar-1.6.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e204fa150d737e71484036b522e5e537c34043566f0d5dda9fdecf548ca391f2
|
|
BLAKE2b-256 checksum How to use checksums |
5ce1bdd0f974267d0952b80160c2740585d9c5fc1559fb1a8b47263b5697b622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Release files / grammar-1.6-py3-none-any.whl
| Download URL | grammar-1.6-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5913a934eac547f9514730250125c8d0523414ef49cc9434cec2ab0b3d0970d6
|
|
BLAKE2b-256 checksum How to use checksums |
7fa34e712822d562faea9ec03f9181e53cf9dec0f4bebb1a19fceec6d3f51089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|