Skip to main content

Sanskrit grammar processing using the Dharmamitra API

Project description

Sanskrit Processor

A Python package for processing Sanskrit text using the Dharmamitra API.

Installation

pip install dharmamitra-sanskrit-grammar

Usage

from dharmamitra_sanskrit_grammar import DharmamitraSanskritProcessor

# Initialize the processor
processor = DharmamitraSanskritProcessor()

# Process a batch of sentences
sentences = [
    "your first sanskrit sentence",
    "your second sanskrit sentence"
]

# Using different modes
results = processor.process_batch(
    sentences,
    mode="lemma",  # or 'unsandhied' or 'unsandhied-lemma-morphosyntax'
    human_readable_tags=True
)

Available Modes

  • lemma: Basic lemmatization
  • unsandhied: Word segmentation only
  • unsandhied-lemma-morphosyntax: Full analysis with word segmentation, lemmatization, and morphosyntax

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

dharmamitra_sanskrit_grammar-0.1.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file dharmamitra_sanskrit_grammar-0.1.5.tar.gz.

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.5.tar.gz
Algorithm Hash digest
SHA256 73445a3f492baf807c56d73ce7b657eb65a2e7051d17f962166921ccdde03c05
MD5 b49485fb24f035ac36a7b76140eaf303
BLAKE2b-256 82f9aa6834f567fd3bcf8f69508d8c9d00ca9dc0f4159a5bdd70def3d49a00a8

See more details on using hashes here.

File details

Details for the file dharmamitra_sanskrit_grammar-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 016513c630df0ffcafa2da0b197d50cfb9d62f1a83057303f154ca0550f17328
MD5 ab30e2d5c53942cec174144b10b0e67b
BLAKE2b-256 78d7942c2a8ffa92c41d4d261fe700ab6acb285aaa143d8f85a6bee710ef41f3

See more details on using hashes here.

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