averkij/a-studio
소개
Lingtrain Alignment Studio is an ML based app for texts alignment on different languages. It can produce parallel corpora and parallel books.
개발 도구What you can do
- Accurate Text Alignment: Utilizes state-of-the-art sentence embedding models to accurately align texts in different languages.
- Parallel Corpus Creation: Extracts parallel corpora from two texts, which can be used for a variety of downstream tasks.
- Bilingual Book Formatter: Creates formatted parallel books with sentence highlighting, making them ideal for language learners.
- Model Flexibility: Supports a variety of sentence embedding models, including distiluse-base-multilingual-cased-v2, LaBSE, and SONAR.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLingtrain Studio

📖 Overview
Lingtrain Studio is a powerful, open-source application designed for aligning texts in different languages. It leverages machine learning models to create high-quality parallel corpora, which can be used for a variety of purposes, including training translation models, creating bilingual books, and for language learning.
The application provides a user-friendly interface for aligning texts, as well as a tool for translators to edit and refine the alignments. It also supports a variety of models, allowing users to choose the best one for their specific needs.
✨ Features
- Accurate Text Alignment: Utilizes state-of-the-art sentence embedding models to accurately align texts in different languages.
- Parallel Corpus Creation: Extracts parallel corpora from two texts, which can be used for a variety of downstream tasks.
- Bilingual Book Formatter: Creates formatted parallel books with sentence highlighting, making them ideal for language learners.
- Model Flexibility: Supports a variety of sentence embedding models, including
distiluse-base-multilingual-cased-v2,LaBSE, andSONAR. - User-Friendly Interface: Provides a simple and intuitive interface for aligning texts and editing alignments.
- Dockerized Deployment: Can be easily deployed on a local machine or a server using Docker.
🏗️ Architecture
%%{ init: {
"theme": "base",
"themeVariables": {
"fontFamily": "Inter, Roboto, Helvetica, Arial, sans-serif",
"primaryColor": "#3F51B5",
"primaryBorderColor":"#303F9F",
"primaryTextColor":"#FFFFFF",
"clusterBkg": "#E8EAF6",
"clusterBorder": "#3F51B5",
"lineColor": "#303F9F"
}
}
}%%
flowchart TD
%% ─── Nodes ────────────────────────────────────────────────
A["<fa:fa-user> User"]:::user
subgraph "Frontend"
direction TB
B["<fa:fa-window-maximize> SPA (Vue)"]:::frontend
end
subgraph "Backend"
direction TB
C["<fa:fa-server> API Service<br/>(Flask)"]:::backend
D["<fa:fa-cogs> lingtrain_aligner"]:::core
E["<fa:fa-brain> Embedding Models<br/>(LaBSE, SONAR…)"]:::model
F["<fa:fa-database> Data Storage"]:::storage
end
%% ─── Connections ──────────────────────────────────────────
A -- "HTTP" --> B
B -- "REST API" --> C
C --> D
D -- "Vectorise" --> E
C -- "CRUD" --> F
%% ─── Styles ───────────────────────────────────────────────
classDef user fill:#4FC3F7,stroke:#0288D1,stroke-width:2px,color:#fff,font-weight:bold;
classDef frontend fill:#AED581,stroke:#7CB342,stroke-width:2px;
classDef backend fill:#FFB74D,stroke:#F57C00,stroke-width:2px;
classDef core fill:#E57373,stroke:#D32F2F,stroke-width:3px,font-weight:bold;
classDef storage fill:#8D6E63,stroke:#5D4037,stroke-width:2px,color:#fff;
classDef model fill:#9575CD,stroke:#512DA8,stroke-width:2px,color:#fff;
🚀 Getting Started
Prerequisites
Installation
Clone the repository:
git clone https://github.com/lingtrain/a-studio.gitNavigate to the project directory:
cd a-studioBuild and run the application using Docker Compose:
docker-compose build docker-compose up
The application will be available at http://localhost:80.
🛠️ Development
Backend
The backend is a Flask/uwsgi REST API service that contains all the alignment logic.
Navigate to the backend directory:
cd backendInstall the required dependencies:
pip install -r requirements.txtRun the backend application:
python main.py
Frontend
The frontend is a Vue.js single-page application that provides the user interface for the application.
Navigate to the frontend directory:
cd frontendInstall the required dependencies:
npm installRun the frontend application:
npm run serve
The frontend application will be available at http://localhost:8080.
🧬 Models
| Model | Description | Languages |
|---|---|---|
distiluse-base-multilingual-cased-v2 |
A fast and reliable model with a moderate size (500MB). | 50+ |
LaBSE |
A model that can be used for rare languages, but is pretty heavy (1.8GB). | 100+ |
SONAR |
A large model (3GB) that supports about 200 languages. It is recommended to explicitly indicate the source language when using this model. | ~200 |
🤝 Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue if you find a bug or have a feature request.
📝 License
This project is licensed under the Attribution-NonCommercial-NoDerivatives 4.0 International license. See the LICENSE file for more details.
⚡ Articles
- 👅 Язык твой — друг твой. Развиваем малые языки
- 🔥 Lingtrain Studio. Книги для всех, даром
- 🧩 How to create bilingual books. Part 2. Lingtrain Alignment Studio
- 📘 How to make a parallel texts for language learning. Part 1. Python and Colab version
- 🔮 Lingtrain Aligner. Приложение для создания параллельных книг, которое вас удивит
- 📌 Сам себе Гутенберг. Делаем параллельные книги
관련 프로젝트 살펴보기
불러오는 중…