https://github.com/alexeyev/tratreetra

simple syntactic transfer based on the treebank translation

https://github.com/alexeyev/tratreetra

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.5%) to scientific vocabulary

Keywords

annotation-tool chatgpt-4o cross-lingual-transfer dependency-grammar kyrgyz-language-processing less-resource-languages low-resource-languages part-of-speech-tagging syntactic-analysis turkish-language-processing universal-dependencies
Last synced: 6 months ago · JSON representation

Repository

simple syntactic transfer based on the treebank translation

Basic Info
  • Host: GitHub
  • Owner: alexeyev
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 42 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
annotation-tool chatgpt-4o cross-lingual-transfer dependency-grammar kyrgyz-language-processing less-resource-languages low-resource-languages part-of-speech-tagging syntactic-analysis turkish-language-processing universal-dependencies
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

Simple Syntactic Transfer Based on the Treebank Translation Method

Intended use

Given * the sentence in the language of interest (LRL, e.g. Kyrgyz), * the translation of the sentence to the more resourced language (e.g. Turkish), * the dependency parser (UD) for the more resourced language (e.g. Stanza-UD_BOUN-BERT), * the alignment model of your liking (source language should be the language of interest), * the morphological analyzer including PoS tags (Universal Tagset) for the language of interest (e.g. apertium-kir; note that it must not modify the tokenization),

generate a dependency tree for the sentence in the target language.

Clearly, it's far from perfect, but may still be useful to speed up the manual treebank annotation. Please see the paper for more details.

UPD: Installable via PIP: https://pypi.org/project/tratreetra/

Example

We have provided some bindings to the popular libraries in tratreetra/models.py; the appropriate versions of these libraries should be installed, please consult the respective docstrings.

The example code in example/example.py reproduces one of the results from the paper:

  • Stanza-IMST-charlm
  • SimAlign-XLMR
  • apertium-kir (without morphological disambiguation)
  • Translation via ChatGPT4o

Please see more details in the example/README.

The paper

The paper is still in print, the preprint on arXiv has been published. Russian version of the paper in the original version of the journal (Zapiski Nauchnyh Seminarov POMI) is also available now.

If you use our tool, we'll be grateful if you cite it as follows:

bibtex @article{atkn2025syntax, author = {Alekseev, Anton and Tillabaeva, Alina and Kabaeva, Gulnara Dzh. and Nikolenko, Sergey I.}, title = {{Syntactic Transfer to Kyrgyz Using the Treebank Translation Method (in print)}}, journal = {To appear in the Journal of Mathematical Sciences}, publisher = {Springer}, year = {2025} }

TODO

  • Thoughtful approach to data structures
  • Profile the code
  • Tests
  • Redesign logging

Owner

  • Name: Anton Alekseev
  • Login: alexeyev
  • Kind: user

GitHub Events

Total
  • Push event: 8
  • Create event: 2
Last Year
  • Push event: 8
  • Create event: 2

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 9 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
pypi.org: tratreetra

Syntactic transfer from more resourced languages: TRAnslating TREEbanks for Syntactic TRAnsfer.

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 9 Last month
Rankings
Dependent packages count: 9.9%
Average: 32.7%
Dependent repos count: 55.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • conllu >=6.0.0
  • sacrebleu >=2.4.3
  • scipy >=1.14.1
setup.py pypi