An amazing sample package!dd
Project description
LinguAligner
LinguALigner 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, LinguALigner 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.4.tar.gz
.
File metadata
- Download URL: lingualigner-0.4.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 | aab0ebe6f3b88a8f7cb131a8bf7cef5d6697cd82d4e4c593dea442b5f0ddd213 |
|
MD5 | cbb8d01a24b0728a21b235cacc08bbc8 |
|
BLAKE2b-256 | 415e13f13f195cae34358aaac810663ee0de7db632e9a91a94bc2dd785cb1cbb |
File details
Details for the file lingualigner-0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: lingualigner-0.4-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 | 834250ccc4de2b7ff253d0a511f2312db3ed3426ce6204501bca35df49c3a085 |
|
MD5 | 7f6f7dc8f649e06ac5c53e7eea1267d7 |
|
BLAKE2b-256 | ebdf2fd157c05d60dfc61a25a13f4b02f8a4f55624c6f53c9ab1737ff5b84fb2 |