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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.3.tar.gz
Algorithm Hash digest
SHA256 75be1ace79a25df0b92b08da37c1ebb37f6681da2938b3106908291d4f5e93b4
MD5 ec56b085c8fb8c286ff475cca9e8f663
BLAKE2b-256 0176a43b4f47e63be447ffeac74f2363b84840098d8c3a4e2c26c89cb70e9f7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 365a58bce2b37b5d8ede401fc544f05e1db2c18d4f15adbcab500b2b11b9b6c9
MD5 1e8779caf163df093500049118418e92
BLAKE2b-256 49bf56e37b33dfeec5a0e9db3f0e37f5d52032b7f3aed02dbfa6b0770c4ceb34

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