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.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3f63546d59c89af36a0a90631cd3bec4d5b71032f0a96bfb3e3eba3431c6cc87
MD5 25701785a8eb218e5e0f6fc75278bb76
BLAKE2b-256 4cff980e6dc2574a8aeeba01e529b8af3c3a593bb573bfd53378e6390272a899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9a78975bbc657153ff834d8ac2a94f674a1eaada206f9a2aa3dbc5a926252c20
MD5 608f3b2482795582f2fa4a17d7926e75
BLAKE2b-256 1aa4c8df1fc1ab4850ce6d5d3f95624ff3458377d291ddbb1d599d7b183a14aa

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