$ show averkij/a-studio
Lingtrain Studio is a web application for aligning texts in two languages to create parallel corpora and generate bilingual books. It features a Vue.js 2.x frontend with Vuetify and a Flask backend that integrates machine learning models (such as LaBSE and sentence-transformers) for automatic sentence alignment. Users can upload texts, split them into sentences, align them using batch processing, manually correct alignments, and export the results in various formats (HTML, TMX, PDF). The application is Dockerized for ease of deployment and includes tools for model fine-tuning and PDF generation from aligned XML.
The LLM identified 2 files worth highlighting for reuse:
Centralizes HTTP API communication with automatic base URL handling and global error interception. Demonstrates encapsulation of cross-cutting concerns (error handling, logging) in a reusable service that can be dropped into any Vue.js Axios-based project.
Encapsulates a reusable batch processing pattern using Python's multiprocessing.Pool. Manages task distribution, result collection, and progress reporting. While integrated with Flask's application context for configuration, the core processing logic is decoupled and adaptable to other contexts via dependency injection.