Glossary

A reference guide to the core concepts, acronyms, and terminology used across Bhashini's Machine Translation (NMT), Transliteration, and Text Processing APIs.

Core Terminology

TermDefinitionExample / API Field
Service IDUnique identifier representing a specific deployed model or pipeline instance hosted on Dhruva.ai4bharat/indictrans-v2-all-gpu--t4
Source LanguageThe ISO 639-1 or 639-3 language code of the input text provided in the request payload."sourceLanguage": "en"
Target LanguageThe ISO 639-1 or 639-3 language code for the generated translation or transliteration."targetLanguage": "hi"
Script CodeISO 15924 four-letter code denoting the script system used to render the characters.Deva (Devanagari), Latn (Latin), Beng (Bengali)
TransliterationPhonetic script conversion that maps words from one writing system to another without changing the underlying meaning or language."namaste" → "नमस्ते"
Translation (NMT)Semantic transformation converting the meaning of text from a source language into a target language."Good morning" → "सुप्रभात"
Token & SubwordThe fundamental lexical unit processed by transformer neural networks, typically segmented via Byte-Pair Encoding (BPE) or SentencePiece.Compound words split into subword fragments
Inference PipelineThe orchestrated orchestration endpoint (/services/inference/pipeline) that can execute single or chained language AI tasks in a single HTTP request.pipelineTasks: [{ taskType: "translation", ... }]
BLEU ScoreBilingual Evaluation Understudy — a standard n-gram precision metric (0–100) used to benchmark machine translation quality against human reference translations.Higher BLEU indicates closer match to reference text
chrF++Character n-gram F-score — an evaluation metric especially suited for agglutinative and morphologically rich Indic languages.Standard Indic benchmark metric
Zero-Shot PairA language direction (e.g., Dogri → Assamese) where the model was not explicitly trained on direct parallel corpora but translates via multilingual representations.Direct Indic-to-Indic translation

Translation vs. Transliteration

Understanding the distinction between translation and transliteration is essential when designing multilingual search, form inputs, and user interfaces:

Input: "Bharat" (English script)
├── Transliteration (Script change) ──> "भारत" (Same word, Devanagari script)
└── Translation (Language change)   ──> "India" (English semantic equivalent)
  • Use Transliteration when: You want users to type phonetically using standard QWERTY keyboards (e.g., typing "namaskar" to produce "नमस्कार" in a search box or text field).
  • Use Translation when: You need the semantic meaning of sentences converted into another language for readers who speak that target language.

Interactive Tryout

Test a translation query live using the interactive runner below to inspect how source text, language codes, and service configurations map to the Dhruva response:

Try a sample
Experiment with a translation to reinforce terms
Request
Add an inference API key to run.
curl
curl --location 'https://dhruva-api.bhashini.gov.in/services/inference/pipeline' \
--header 'Accept: */*' \
--header 'Authorization: YOUR_INFERENCE_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"pipelineTasks": [
{
"taskType": "translation",
"config": {
"serviceId": "",
"language": {
"sourceLanguage": "hi",
"targetLanguage": "gu"
}
}
}
],
"inputData": {
"input": [
{
"source": "<text>"
}
]
}
}'
Response
Send a request to see the live response here.