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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5baac8dfec886547228758dd13c7b00602cb7418020a2409e70a494d1a37b55c
MD5 1a0f513aec99fae316c9cf24c9e38135
BLAKE2b-256 da6bb6ef3512de2cf78112bdd2885b90d92a4a30a8363b9e832fd3e4c3ffdfd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dharmamitra_sanskrit_grammar-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 774acdd3273120fb70e8609ee0d021a745d8327b62bf798e923d71ea8cab6d19
MD5 de9708926671b423c4c4a308379d18ba
BLAKE2b-256 a7cc323aa0e9aabc564ece0e41a9db04ba91dd64cc742ca47eba505a5e077242

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