Mayura

Mayura is our powerful translation model designed to convert text between English and Indian languages while preserving meaning and context. It supports advanced features such as:

  • Customizable translation styles
  • Script control
  • Intelligent handling of code-mixed content

For example:
"मैं ऑफिस जा रहा हूँ""I am going to the office"
This preserves the original meaning across different scripts and languages.

Key Features

Language Support

Support for 11 languages (10 Indian + English). Automatic language detection available by setting source_language_code to “auto”.

Translation Modes

Multiple translation styles: formal, modern-colloquial, classic-colloquial, and code-mixed for different contexts.

Script Control

Flexible output script options: Roman, native, and spoken forms for customized text representation.

Smart Processing

Numeral format control for improved translation accuracy.

Context Preservation

Maintains meaning and context across languages while handling cultural nuances appropriately.

Code-Mixed Support

Intelligent handling of mixed-language content common in Indian conversations.

Language Support

Mayura supports bidirectional translation between the following languages:

Languages (Code):

Hindi (hi-IN), Bengali (bn-IN), Tamil (ta-IN), Telugu (te-IN), Gujarati (gu-IN), Kannada (kn-IN), Malayalam (ml-IN), Marathi (mr-IN), Punjabi (pa-IN), Odia (od-IN), English (en-IN)

All of the above supports both English ↔ Indian language translations.

All Indian languages support bidirectional translation with English. To enable automatic language detection, set source_language_code to “auto” in your API request.

Use the Sarvam-Translate model to support all 22 official Indian languages.

Corpus BLEU (Bilingual Evaluation Understudy) Benchmark

Corpus BLEU score is a metric that evaluates the overall quality of machine translation by comparing it to reference translations across an entire dataset. Higher scores (closer to 100) indicate better performance.

0510152025303540Corpus BLEU Score18.14Bengali27.32Gujarati24.86Hindi23.86Kannada14.64Malayalam32.56Marathi27.57Odia9.19Punjabi6.78Tamil37.57TeluguLanguages

Key Capabilities

Simple translation between languages with default settings. Perfect for getting started with the Mayura API.

1from sarvamai import SarvamAI
2
3client = SarvamAI(
4 api_subscription_key="YOUR_SARVAM_API_KEY"
5)
6
7response = client.text.translate(
8 input="मैं ऑफिस जा रहा हूँ",
9 source_language_code="hi-IN",
10 target_language_code="en-IN"
11)
12
13print(response)

Next Steps