Skip to main content

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.3.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

grammar-1.3-py3-none-any.whl (11.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page