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 lemmatizationunsandhied
: Word segmentation onlyunsandhied-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
Built Distribution
File details
Details for the file dharmamitra_sanskrit_grammar-0.1.3.tar.gz
.
File metadata
- Download URL: dharmamitra_sanskrit_grammar-0.1.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75be1ace79a25df0b92b08da37c1ebb37f6681da2938b3106908291d4f5e93b4 |
|
MD5 | ec56b085c8fb8c286ff475cca9e8f663 |
|
BLAKE2b-256 | 0176a43b4f47e63be447ffeac74f2363b84840098d8c3a4e2c26c89cb70e9f7b |
File details
Details for the file dharmamitra_sanskrit_grammar-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: dharmamitra_sanskrit_grammar-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 365a58bce2b37b5d8ede401fc544f05e1db2c18d4f15adbcab500b2b11b9b6c9 |
|
MD5 | 1e8779caf163df093500049118418e92 |
|
BLAKE2b-256 | 49bf56e37b33dfeec5a0e9db3f0e37f5d52032b7f3aed02dbfa6b0770c4ceb34 |