Skip to content

Python library for translating XLIFF files using HelsinkiNLP

Notifications You must be signed in to change notification settings

kalizi/Open-XLIFF-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open XLIFF Translator

Open XLIFF Translator is a Python library for translating XLIFF files from WPML using HelsinkiNLP from HuggingFace.

Open XLIFF Translator Logo

Example Usage

To use Open XLIFF Translator, simply install the dependencies using pip:

pip install -r requirements.txt

If you have a CUDA-enabled GPU, you can also install the GPU version of the dependencies:

pip install -r requirements-gpu.txt

Then, you can call the main.py script to translate your XLIFF files from the command line:

python main.py <input_dir> <output_dir> [--translator <translator>] [--verbose]

By default, the library uses the HelsinkiNLP model from HuggingFace to perform the translation.

If your XLIFF Files are into inputs and want to output in the translated, the command will be:

python main.py inputs translated

External Links

Issues

If you encounter any issues while using Open XLIFF Translator, please feel free to submit an issue using the GitHub Issue Tracker.

Any feedback and/or contributions are welcome!

About

Python library for translating XLIFF files using HelsinkiNLP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages