Skip to content

atlasia-ma/TerjamaBench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

TerjamaBench

Code used to run evaluation on TerjamaBench using BLEU, chr and TER.

WARNING: the dataset is gated, visit https://huggingface.co/datasets/atlasia/TerjamaBench to request access.

Usage

# Get the HF token from your profile
token = 'your_huggingface_token'

# Load the benchmark dataset
df = load_benchmark(token)

# Evaluate
references = df['Darija'].tolist()  # Target translations
predictions =   # Your model predictions

# Evaluate individual samples
scores = evaluate(references, predictions)

# Get average scores
avg_scores = evaluate_model(references, predictions)
print(f"Average scores: {avg_scores}")

Learn more

Find our blog post here.

About

Code used to run evaluation on TerjamaBench https://huggingface.co/datasets/atlasia/TerjamaBench

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages