Difference between revisions of "User:Mathematic-alpha/gsoc-report"

From Apertium
Jump to navigation Jump to search
m
 
(4 intermediate revisions by the same user not shown)
Line 50: Line 50:
 
|-
 
|-
 
| 2019-08-05
 
| 2019-08-05
| 27896
+
| 27896 (???)
| 35035
+
| 35035 (??? )
 
| ~79.62%
 
| ~79.62%
 
|-
 
|-
Line 57: Line 57:
 
| 12245
 
| 12245
 
| 14823
 
| 14823
| ~90.01%
+
| ~90.01% (w/o bible text)
  +
|-
  +
| 2019-08-26
  +
| 22517
  +
| 19223
  +
| ~85.37% (w/ bible text)
 
|}
 
|}
   
Line 97: Line 102:
 
= Project description =
 
= Project description =
   
A project on adoption of Guarani-Spanish language pair in Apertium had as its purpose a creation of machine translation system between Guarani and Spanish languages. As Guarani is one of the low-resource languages of the world the translation system is unlikely to be developed by other methods than Rule-Based Machine Translation. As the evidence of that we had only about 2800 texts from Wikipedia dumps [https://dumps.wikimedia.org/backup-index.html] and Guarani-Spanish aligned Bible [https://www.bible.com/es/versions/972-guabd-biblia-guarani-tumpa-inee] as a source.
+
A project on the adoption of Medumba-Français language pair in Apertium had as its purpose creation of machine translation system between Medumba and Français languages.
  +
As Medumba is one of the low-resource languages of the world the translation system is unlikely to be developed by other methods than Rule-Based Machine Translation.
  +
As the evidence of that, we had only about 12 texts from Wikipedia incubator (links in Manifest) and quasi inexistent Medumba-Français aligned text sources as a source.
   
Generally project consisted of three main parts:
+
Generally, the project consisted of three main parts:
   
* Morphological analyzer for Guarani
+
* Morphological analyzer for Medumba
* Guarani-Spanish bilingual dictionary (bidix)
+
* Medumba-Français bilingual dictionary (bidix)
 
* Transfer rules
 
* Transfer rules
   
A detailed work plan for the project can be found [http://wiki.apertium.org/wiki/User:Anakuznetsova/Proposta here].
+
A detailed work plan for the project can be found [http://wiki.apertium.org/wiki/User:Mathematic-alpha/proposal here].
   
 
==Morphological Analyzer ==
 
==Morphological Analyzer ==
   
 
We had to develop morphological analyzer almost from scratch.
We had to develop morphological analyzer almost from scratch. And the most challenging thing from the beginning was to find any properly organized lists of words or Guarani dictionaries. By the end of the Community Bonding period after 2 week of work we were able to analyze only 30% of words contained in wiki corpora. Coverage almost 90% by the end of Google Summer of Code program.
 
  +
And the most challenging thing from the beginning was to find any properly organized lists of words or Medumba dictionaries and even online corpus.
  +
By the end of the Community Bonding period after 2 weeks of work, we were able to analyze less than 20% of words contained in wiki corpora.
  +
Coverage almost 90% by the end of Google Summer of Code program (if not of the bible text which is written in the old orthography).
   
  +
The morphological analyzer is accompanied by spellrelax file with rules for transcribing the old orthography to the new one.
<pre>
 
GRN-Wiki
 
   
dc ago 8 17:30:19 CEST 2018 109:13135 455256/508418 ~0.89543643222702579374
 
</pre>
 
 
<pre>
 
Bible
 
 
dc set 12 12:15:05 CEST 2018 109:13135 561107/623303 ~0.90021546503065122420
 
</pre>
 
 
All in all our morphological analyzer contains 12 638 lemmas:
 
* 4455 Nouns
 
* 2537 Verbs (divided in two groups by transitivity)
 
* 1668 Adjectives
 
* 457 Adverbs
 
 
This list does not include other lemma categories such as Proper Names (3052), different kind of pronouns, barbarisms (more frequently borrowed from Spanish), interjections, etc.
 
 
But we are able to analyze even more because some of the words have orthographical equivalents (as there are several traditions in written Guarani) or some forms found in corpora are just spelling errors.
 
 
Example of annotation made by morph analyzer:
 
 
<pre>
 
echo "Ou omba'apo hag̃ua" | lt-proc grn.automorf.bin
 
 
^Ou/Ou<v><iv><pres>/Ou<v><iv><p3><sg><pres>/Ou<v><iv><p3><pl><pres>$
 
^omba'apo/o<prn><pos><p3><sg>+mbaʼapo<n>$ ^hag̃ua/hag̃ua<post>$
 
 
Viene a trabajo.
 
</pre>
 
 
Although we did not do any disambiguation so far.
 
 
Morphological analyzer is accompanied by twol file where 30 phonological rules are implemented. Twol is a kind of formalism used in Helsinki Finite State Technology (HFST). These rules resolve special cases of form transformations which could not be solved in morph analyzer, for example change of affixes after nasals etc. To prevent our transducer from phonological errors we wrote tests for various cases (contained in "tests" directory).
 
 
In addition we have managed to do [https://github.com/ana-kuznetsova/apertium-grn/blob/master/texts/eval1.txt syntactic tree annotation] for some of the texts from our wiki corpora, although it is on the initial stage and requires corrections.
 
 
 
'''Sources'''
 
 
Here are some sources that we used to construct morphological dictionary.
 
 
# [http://descubrircorrientes.com.ar/2012/index.php/diccionario-guarani/1-guarani-espanol/1129-tai-c Discubrir Corrientes. La Enciclopedia Virtual Correntina] ;
 
# [https://github.com/LowResourceLanguages/hltdi-l3/tree/master/dicts Low Resource Language Dictionaries].
 
 
'''Grammar reference'''
 
# Estigarribia, B. (2017). Guarani linguistics in the 21st century. 1st ed. BRILL, p.420.
 
# Krivoshein de Canese, N. and Decoud Larrosa, R. (1983). Gramatica de la lengua guarani. Asuncion: Nemity Krivoshein de Canese.
 
   
 
== Bilingual Dictionary ==
 
== Bilingual Dictionary ==
Bilingual dictionary (or bidix) was constructed from the lexicons used in morphological dictionaries mentioned above. Bidix entry looks the following way:
 
<pre>
 
<e><p><l>mbaʼapo<s n="n"/></l><r>tarea<s n="n"/><s n="f"/></r></p><par n="n_n"/></e>
 
</pre>
 
   
  +
The development of the bidix(bilingual dictionary) was halted for the benefit of the morphological analyser for the Mə̀dʉ̂mbɑ̀. This is so because to have a good bilingual dictionary, both monolingual dictionaries must work fine.
With this dictionary we can translate left to right from Guarani to Spanish.
 
 
<pre>
 
echo "buma mɛn" | apertium -d . byv-fra
 
#Venir #el tarea para
 
</pre>
 
   
 
== Transfer rules ==
 
== Transfer rules ==
   
We cannot reproduce correctly the structure of the Spanish sentence as well as word forms with right Spanish inflections as we still have few transfer rules. Transfer rules are developed only for nouns and some postpositions so far but we are planning to do it in the nearest future.
+
We cannot reproduce correctly the structure of the Français sentence as well as word forms with right Français inflexions as we still have few transfer rules.
  +
Transfer rules are developed only for very few nouns so far but we are planning to do it in the nearest future.
   
 
== Plans for future ==
 
== Plans for future ==
 
# Increase coverage as much as possible ;
 
# Increase coverage as much as possible ;
 
# Write transfer rules ;
 
# Write transfer rules ;
  +
# Develop the interface ;
  +
  +
The community in charge of the development of Medumba(or any Cameroonian language committee) are not really versed with the techniques to develop a complete dictionary. The main aim is to provide some sort of abstraction built over GitHub with a combination of CI tools and virtual machines to automate the build
   
 
= Acknowledgements and impressions of GSoC program =
 
= Acknowledgements and impressions of GSoC program =
   
First of all I would like to express my gratitude to Francis Tyers, mentor, who has always been very helpful and supportive. In course of GSoC program he made me even more curious about linguistic technologies and Guarani language as well. He is highly qualified both in linguistics and technology. Hopefully this project will turn into larger academic work.
+
First of all, I would like to express my total gratitude to Anastasia Kuznetsova, mentor, who has always been very helpful and supportive (really).
  +
In the course of the GSoC program, she helped me when I was stuck and she was always available. She is really helpful. I also thank Jonathan Washington, mentor, who put in all his efforts to make this project a success.
  +
Hopefully, this project will motivate others and turn into larger community work.

Latest revision as of 10:26, 28 August 2019

PROJECT: Adopt an unreleased language pair with a minimal user interface.

STATS and REPOs[edit]

Medumba progress
Date byv lexicon size Corpus size Coverage
12.06.2019 189 8674 ~0.37
20.06.2019 317 8674 ~0.39
05.07.2019 317 8674 ~0.56
10.07.2019 1186 6604 ~0.83
2019-07-21 1703 22627 ~65.21%
2019-07-25 1705 22637 ~69.19%
2019-07-25 17594 22624 ~77.77%
2019-08-05 27896 (???) 35035 (??? ) ~79.62%
2019-08-21 12245 14823 ~90.01% (w/o bible text)
2019-08-26 22517 19223 ~85.37% (w/ bible text)
Medumba-French progress
Date byv-fra lexicon size Coverage WER, PER
12.06.2019 1592 ~0.10 Something
05.07.2019 1592 ~0.20 Something
10.07.2019 1592 ~0.35 Something


Monodix (Apertium-byv)
-My commits

Bidix (Apertium-byv-fra)
-My commits

Interface





Project description[edit]

A project on the adoption of Medumba-Français language pair in Apertium had as its purpose creation of machine translation system between Medumba and Français languages. As Medumba is one of the low-resource languages of the world the translation system is unlikely to be developed by other methods than Rule-Based Machine Translation. As the evidence of that, we had only about 12 texts from Wikipedia incubator (links in Manifest) and quasi inexistent Medumba-Français aligned text sources as a source.

Generally, the project consisted of three main parts:

  • Morphological analyzer for Medumba
  • Medumba-Français bilingual dictionary (bidix)
  • Transfer rules

A detailed work plan for the project can be found here.

Morphological Analyzer[edit]

We had to develop morphological analyzer almost from scratch. And the most challenging thing from the beginning was to find any properly organized lists of words or Medumba dictionaries and even online corpus. By the end of the Community Bonding period after 2 weeks of work, we were able to analyze less than 20% of words contained in wiki corpora. Coverage almost 90% by the end of Google Summer of Code program (if not of the bible text which is written in the old orthography).

The morphological analyzer is accompanied by spellrelax file with rules for transcribing the old orthography to the new one.


Bilingual Dictionary[edit]

The development of the bidix(bilingual dictionary) was halted for the benefit of the morphological analyser for the Mə̀dʉ̂mbɑ̀. This is so because to have a good bilingual dictionary, both monolingual dictionaries must work fine.

Transfer rules[edit]

We cannot reproduce correctly the structure of the Français sentence as well as word forms with right Français inflexions as we still have few transfer rules. Transfer rules are developed only for very few nouns so far but we are planning to do it in the nearest future.

Plans for future[edit]

  1. Increase coverage as much as possible ;
  2. Write transfer rules ;
  3. Develop the interface ;

The community in charge of the development of Medumba(or any Cameroonian language committee) are not really versed with the techniques to develop a complete dictionary. The main aim is to provide some sort of abstraction built over GitHub with a combination of CI tools and virtual machines to automate the build

Acknowledgements and impressions of GSoC program[edit]

First of all, I would like to express my total gratitude to Anastasia Kuznetsova, mentor, who has always been very helpful and supportive (really). In the course of the GSoC program, she helped me when I was stuck and she was always available. She is really helpful. I also thank Jonathan Washington, mentor, who put in all his efforts to make this project a success. Hopefully, this project will motivate others and turn into larger community work.