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 sanskrit_processor import SanskritBatchProcessor

# Initialize the processor
processor = SanskritBatchProcessor()

# 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.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 527c98299b779d6b704bc67cf8812907daa0c6e3c960edd1b0a156c90256f275
MD5 c6b348e8b434f21704b96f228024cfef
BLAKE2b-256 54499a64f87d1fa0db1c313e47c376a1a9f2df01901e2d196a143d1154642699

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67580dea5b3548ba437bae1e78d264920e70fd14b3eb88fd8b4bc06b7a629d86
MD5 02461a4b4b69fe15837e859c83eda81f
BLAKE2b-256 ef38d87aa72162b243d870aa5ff62ffc3a046040de553946ab8948a8e37c8758

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