Skip to content

VeronikaHurska/DocumentTranslator

Repository files navigation

Document Translator Service

This service was developed to translate documents without breaking their structure. Below is an overview of the service architecture.

Service Architecture

Available Features

  • Translation API Service: A dedicated API service for translating documents.
  • Telegram Bot: A chatbot interface for document translation via Telegram.

Supported Languages:

  • Ukrainian
  • German
  • English

Supported Models

Local Setup

Running the Entire Service (with All Components)

To run the entire service, including both the translation API and the Telegram bot:

docker-compose up --build

Running Only the Translation API

If you want to build and run only the Translation API service:

docker-compose up --build translator_backend

Usage

After starting the Translation API, it will be available at http://localhost:8000. You can interact with the API via HTTP requests. Here’s an example of how to translate a document:

curl -X POST "http://localhost:8000/translate_document?src_lang=ukrainian&tgt_lang=english&output_format=docx" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "file=@/path/to/your/document.docx"

** Replace /path/to/your/document.docx with the path to the document you want to translate.

Prerequisites

Ensure you have the following installed on your local machine:

  • Docker
  • Docker Compose

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Bot Service for Document Translation without breaking the document layout

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors