Python library for natural language processing
Project description
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
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
grammar-1.6.tar.gz
(6.8 kB
view details)
Built Distribution
grammar-1.6-py3-none-any.whl
(11.7 kB
view details)
File details
Details for the file grammar-1.6.tar.gz
.
File metadata
- Download URL: grammar-1.6.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e204fa150d737e71484036b522e5e537c34043566f0d5dda9fdecf548ca391f2 |
|
MD5 | 7926526877ca6f5f1b388ae3f93a50ad |
|
BLAKE2b-256 | 5ce1bdd0f974267d0952b80160c2740585d9c5fc1559fb1a8b47263b5697b622 |
File details
Details for the file grammar-1.6-py3-none-any.whl
.
File metadata
- Download URL: grammar-1.6-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5913a934eac547f9514730250125c8d0523414ef49cc9434cec2ab0b3d0970d6 |
|
MD5 | 9cc68b22e69e5e8b3511545fe0eecadd |
|
BLAKE2b-256 | 7fa34e712822d562faea9ec03f9181e53cf9dec0f4bebb1a19fceec6d3f51089 |