Skip to main content

A Python package for processing Sanskrit text 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.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e420d556a63879e7472df9e2aa2427bf0ff04390e6466708e1397bc9cd02612
MD5 c348f7152f9489da7f9cd0d599d0c420
BLAKE2b-256 f1fd7e9d7da04abae1c277c6e7308fb9cec5818102040407978956dd85580988

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32c24654c57e51122a6ca058134309a59b36510d440ed4604e7375001f23af24
MD5 08709b93a015d2b087ce8ddae94aadf1
BLAKE2b-256 5be892f8aaae4b9823192b80f83c2f1290cf1cad78f36fb9fec2a9abbe22f39c

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