Skip to main content

A translation quality package

Project description

Installation:

pip install dataframetranslationscoring

Usage:

Given two folder paths , the translation_quantitative_scoring() function will return a dictionary with translation quality scores. Example:

import pandas as pd
from dataframetranslationscoring.scoring import translation_quantitative_scoring
metrics = translation_quantitative_scoring(original_dataframe_path="folder1/*.csv", translated_dataframe_path="folder2/*.csv")

This will print the following:

Percentage of words translated vs available: X %
Percentage of characters translated vs available: X %
Percentage of non-null translations: X %
Total number of characters to be translated: X
Total number of words translated/available: X/X
Total number of characters translated/available: X/X

and return a dictionary with the following keys:

{'words_percentage': 'X%',
 'characters_percentage': 'X%',
 'non_null_percentage': 'X%',
 'total_characters': X,
 'total_words_translated/available': 'X/X',
 'total_characters_translated/available': 'X/X'}

Project details


Download files

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

Source Distribution

dataframetranslationscoring-1.1.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

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

dataframetranslationscoring-1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file dataframetranslationscoring-1.1.tar.gz.

File metadata

File hashes

Hashes for dataframetranslationscoring-1.1.tar.gz
Algorithm Hash digest
SHA256 8df84a22e51e639d757d3fcbad963da51a6ded1cc3264d5879ccbfc8b5fb4d73
MD5 4857bfec40a35b288cff3d4d7cb858a2
BLAKE2b-256 483ba0d75f4b5e5812bd4385d498154deaa32da46f2417f5db6784220df2f83b

See more details on using hashes here.

File details

Details for the file dataframetranslationscoring-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dataframetranslationscoring-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57f87a3d26ca632533bf1eb004b2c02baa58f9eccaebaa7dff096d98e8923a01
MD5 23af653c28aaf0b030d3cd132cbe5858
BLAKE2b-256 fbf76db9da53fc493ef76ac8d971086500b1711d44000771b050654ae5782e91

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 Pingdom Monitoring Sentry Error logging StatusPage Status page