MVPilgrim/POC_E2J_SL_Commentary_01
0
POC English<->Japanese Translation
I developed this first LLM project as a Proof-of-Concept for using local LLMs to translate English to Japanese and vice-versa. Text files to be translated can be uploaded and translated text can be downloaded. The future intent is to be able to translate Bible commentaries and other materials from English to Japanese and make them available to Christians in Japan. My information is that there are not many materials of this kind available there.
However, with so many new tools available, I plan to look into particularly oolama and LLM agent frameworks.
Components
The project incorporates the following key components:
- NLLB LLM: No Language Left Behind large language model.
- MT5-large: Multilingual text-to-text transformer trained.
Screenshot
Usage
To use the application, follow these steps:
- Select the source and target languages for translation from the corresponding dropdown UI controls. Currently only English and Japanese are available.
- Select the LLM model to use from the dropdown.
- Type the source text into the "Input Text" text box.
- Click the "Translate" button.
- Please be patient and wait for 15-20 seconds.
- View the translated text in the "Output Text" text box.
To upload text files to translate and download the translated text file:
- Upload a file by either dragging and dropping a file to the file upload area or click "Browse Files" and select a file.
- Click the "Translate" button to translate the file. The file input text will be displayed in the input area and the translated text in the output area.
- Click the "Download Translated Text" button to download the translatation into a file named translated.txt. Multiple downloads will create additional translated.txt(1) files.
- Click the "Reset" button to clear all fields.
Notes and Future Improvements
- There are issues with the translation. I started this project a number of months ago and did achieve the goal of learning how to write code to use LLMs. However there are many new LLMs available that should produce batter results.
- Only small files of text have been uploaded and translated. Large files will need to be tested.
