Skip to content
Novus Examples
jsonl1.3 KB

Parallel Translation Corpus — EN↔ES (JSONL)

An English↔Spanish parallel corpus in JSON Lines — 20 aligned sentence pairs of everyday phrases. A fixture for training and evaluating machine-translation models and for testing UTF-8 handling of accented characters.

Preview — first 21 linesjsonl
{"en": "Good morning.", "es": "Buenos días."}
{"en": "Where is the train station?", "es": "¿Dónde está la estación de tren?"}
{"en": "I would like a coffee, please.", "es": "Quisiera un café, por favor."}
{"en": "How much does this cost?", "es": "¿Cuánto cuesta esto?"}
{"en": "The weather is nice today.", "es": "Hoy hace buen tiempo."}
{"en": "My name is Alex.", "es": "Me llamo Alex."}
{"en": "Thank you very much.", "es": "Muchas gracias."}
{"en": "I don't understand.", "es": "No entiendo."}
{"en": "Can you help me?", "es": "¿Puedes ayudarme?"}
{"en": "The book is on the table.", "es": "El libro está sobre la mesa."}
{"en": "We are going to the beach.", "es": "Vamos a la playa."}
{"en": "What time is it?", "es": "¿Qué hora es?"}
{"en": "She speaks three languages.", "es": "Ella habla tres idiomas."}
{"en": "The food was delicious.", "es": "La comida estaba deliciosa."}
{"en": "I will call you tomorrow.", "es": "Te llamaré mañana."}
{"en": "This is my favourite song.", "es": "Esta es mi canción favorita."}
{"en": "They live near the park.", "es": "Ellos viven cerca del parque."}
{"en": "Please close the door.", "es": "Por favor, cierra la puerta."}
{"en": "The children are playing outside.", "es": "Los niños están jugando afuera."}
{"en": "I need to buy some bread.", "es": "Necesito comprar pan."}

Specifications

Pairs
20
Languages
en, es
Schema
en, es
Task
machine translation

What is a .jsonl file?

JSONL (JSON Lines) is a text format where each line is a complete, independent JSON value, allowing records to be streamed and appended without parsing the whole file. It is not itself a JSON array and each line must stand alone. It is common in logging, machine learning datasets, and data pipelines.

How to use this file

Use an example JSONL to test line-by-line streaming parsers, append-and-resume ingestion, and batch pipelines that process one record per line.

Code examples

import json

with open("translation-en-es.jsonl") as f:
    rows = [json.loads(line) for line in f]
print(len(rows), rows[0])

Generated by generation/ai_datasets.py. Free for any use, no attribution required — license.