An amazing sample package!dd
Project description
LinguAlign
LinguALign is a comprehensive corpus translation and alignment pipeline designed to facilitate the translation of corpora across different languages. It translates corpora using machine translation and aligns the translated annotations with their corresponding translated text. Initially developed for the automatic translation of ACE-2005 into Portuguese, LinguALign has since been adapted into a versatile package for effortless translation of other corpora.
It is composed of two main components:
- Text translation: We support DeepL Translator, Google Translator and Microsoft Translators APIs.
- Annotations alignments: We developed an annotation alignment pipeline that uses several alignment techniques to align the translated annotations within the translated text.
Annotation Alignment Modules
Our pipeline is composed of a total of five annotation alignment components:
- Lemmatization
- Multiple word translation
- Synonyms
- BERT-based word aligner
- Fuzzy Match (Gestalt Patter Matching and Levenstein distance)
The pipeline operates sequentially, meaning that annotations aligned by earlier methods are not addressed by subsequent pipeline elements. According to our experiments, the list above corresponds to the best order sequence.
Usage
-
Translate Corpora An API key is need in order to use the Translation APIs.
-
Run the Annotation Alignment Pipeline
Users can select the aligners they intend to use and must indicate the path for the alignment resources for each alignment component, such as multiple translations of annotations, previously calculated lemmas, synonyms, etc.
Evaluation
To measure the effectiveness of the alignment pipeline, manual alignments were conducted on the entire ACE-2005-PT test set, which includes 1,310 annotations (triggers and arguments). These alignments were performed by a linguist expert to ensure high-quality annotations, following the same annotation guidelines of the original ACE-2005 corpus.
The evaluation results are presented in Table 1:
Table 1: Evaluation Results by pipeline component
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
License
This project is licensed under the MIT License.
Citation
Comming Soon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lingualigner-0.2.tar.gz
.
File metadata
- Download URL: lingualigner-0.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 137cc21bcf9432fa996b570b6df9fea8c33cacee88b8feb1a2e6f2f66fc2b30d |
|
MD5 | 978a466ebd5e3e6ef9075ad20b70b020 |
|
BLAKE2b-256 | 06643df4233b3f03a7fb038f14d1789c271ac60b5622dfd79600fc83b64efaed |
File details
Details for the file lingualigner-0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: lingualigner-0.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2598beb0ae70dc589690fb2cd67f41a7972602d078a71cb643530094260138d |
|
MD5 | 69c498eed528874be3f6b3a2e45035d3 |
|
BLAKE2b-256 | 158dac844c696aad4a3109079dfcd1b1887284b14370297786c031381d88fce0 |