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
import 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-0.0.7.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dataframetranslationscoring-0.0.7.tar.gz
Algorithm Hash digest
SHA256 fb024b322d8e5c7f202d5e57a874a2de754b81b950bdcd6c35a06b7557989e00
MD5 0ff79afa2f07b8b033b59cece1a12aa1
BLAKE2b-256 b56cfc8578acb645a9f2c4e7b6dc06f7e2ab7d271e4368bde6743c3ddfd28289

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dataframetranslationscoring-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0f2a76e3276d0f6744ea2326718ad01e619b2a30dd90c4a23ab882fa9481f629
MD5 0de8852b22862e19d358491630b9a47d
BLAKE2b-256 2c81f933355029bd2913644ef141233abc55a112ccd0c7068283b00b356b1645

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