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 including English and major Indian languages with automatic language detection.

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

Advanced preprocessing and 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. The ‘auto’ option in source_language_code enables automatic language detection.

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

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_API_SUBSCRIPTION_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