Skip to main content

Translation Canvas

PyPI version License: MIT

Overview

Translation Canvas is a Python package designed for in-depth analysis and visualization of machine translation (MT) model outputs. It facilitates both system-level and instance-level evaluations, helping researchers identify, analyze, and comprehend the strengths and weaknesses of translation models.

The tool integrates multiple evaluation metrics, including BLEU, COMET, and InstructScore, to provide a comprehensive view of translation quality. Moreover, it offers detailed natural language explanations for identified errors, powered by InstructScore, and presents the results in an intuitive and interactive dashboard.

Why Translation Canvas?

With the rapid development of machine translation systems, traditional evaluation tools like COMET and SacreBLEU often fall short in providing fine-grained insights. Translation Canvas bridges this gap by offering:

Instance-level Error Analysis: Highlight specific errors in translation instances and explain their nature using natural language descriptions.

System-level Insights: Aggregate error analysis to identify common pitfalls and strengths across entire datasets.

Visual Comparisons: Interactive dashboard for comparing the performance of different models on a granular level.

Installation

You can easily install Translation Canvas via pip:

pip install translation-canvas

After installation, run a one-time setup script to configure necessary dependencies:

translation-canvas-setup

For the latest development version, you can install directly from the GitHub repository:

pip install git+https://github.com/ChinDandekar/translation_canvas

Features

Compare Instances

Error Analysis

Translation Canvas highlights errors at the instance level using color-coded spans. Hovering over these spans reveals natural language explanations, making it easier to understand the type of errors encountered.

Comparison and Search

Translation Canvas allows users to compare multiple models simulatneously. It also provides a powerful search feature to users, allowing them to filter instancs by text, error type, error scale and error explanation

System-level Dashboard

Compare Systems

Translation Canvas provides a system-level dashboard to understand model performance at a system level.

Instance Submission

Submit Workflow

Submit source-prediction-reference triplets through the user interface or by directly uploading files. The tool will process these instances, evaluate them using the integrated metrics, and provide detailed feedback.

Usage

Translation Canvas operates as a web application, running in your browser. To start the application:

translation-canvas-start

By default, the app will be available at http://127.0.0.1:5000.

To run the app on a different port:

translation-canvas-start --port your-port

Port Forwarding

If you are running Translation Canvas on a remote server via SSH, use port forwarding to access the app:

ssh -L your-port:127.0.0.1:5000 username@yourserver.com

Evaluation and Feedback

Translation Canvas has been tested with machine translation experts, who found it to be both effective and user-friendly. The tool has shown to be particularly useful in pinpointing subtle errors that might be overlooked by traditional evaluation methods.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

translation_canvas-1.0.1.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

translation_canvas-1.0.1-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file translation_canvas-1.0.1.tar.gz.

File metadata

  • Download URL: translation_canvas-1.0.1.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for translation_canvas-1.0.1.tar.gz
Algorithm Hash digest
SHA256 67038e27442095c5441033495e6b7a45df689fedf852ac42b37fc732555e863a
MD5 0e804e0de6c6dc2ef05b34a22a7f1667
BLAKE2b-256 53024afb439fa17e75ddb2a0bb249891c21c27a244ef8086f91f97769af3c58c

See more details on using hashes here.

File details

Details for the file translation_canvas-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for translation_canvas-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c51de2a1ec95e50001a9ceb72ee01ea34d04832ac6dde24247942b2cae73138e
MD5 84063ad5dd3acf0a65809b3d4fec765d
BLAKE2b-256 1b9f8867003b7c0d4e17b7936cbf9e8c5e33cb4f52e2e44ee32105bcb4662f76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page