Converts TMX files to text files
Project description
Introduction
tmx-to-text allows convert TMX files into plain text.
This tool be used for example to:
- Extract translations memories into text file for spell checking or post-editing
- Extract corpuses into text files for traning machine learning similar
The following command will extract the Catalan and Italian texts out of the TMX file:
tmx-to-text.py -f ca-it.tmx -s ca -t it
Running the application with -h shows the options avaiable
Converts TMX into two text files.
Use -h for more information.
Usage: tmx-to-text [options]
Options:
-h, --help show this help message and exit
-f TMX_FILE, --tmx-file=TMX_FILE
tmx File to convert to Text
-s SOURCE_LANGUAGE, --source_lang=SOURCE_LANGUAGE
Source language to export
-t TARGET_LANGUAGE, --target_lang=TARGET_LANGUAGE
Target language to export
-p PREFIX, --prefix=PREFIX
Filename prefix used in the generated text files
-d, --debug Debug memory and execution time
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
tmx-to-text-0.1.3.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for tmx_to_text-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c866dddf291ae41173ac8a3a8a8c3961c7f63dd25fc589330da4c701db084d38 |
|
MD5 | 6e727bcdf9998fc27ed4203a1af56783 |
|
BLAKE2b-256 | ac66fbbca24b2986bb7bb883cde2543017bb454883cfda25811dc65fa3405205 |