Apertium

Test all lexc files in Apertium and find which ones break with the lexc2dot script

This code generates a graph of continuation lexica from a .lexc file. The objective of this task is to take all of the .lexc files in apertium/languages

./apertium-qve/apertium-qve.qve.lexc ./apertium-nog/apertium-nog.nog.lexc ./apertium-tur/apertium-tur.tur.lexc ./apertium-crh/apertium-crh.crh.lexc ./apertium-uzb/apertium-uzb.uzb.lexc ./apertium-kaa/apertium-kaa.kaa.lexc ./apertium-tuk/apertium-tuk.tuk.lexc ./apertium-bak/apertium-bak.bak.lexc ./apertium-chv/apertium-chv.chv.lexc ./apertium-tyv/apertium-tyv.tyv.lexc ./apertium-quz/apertium-quz.quz.lexc ./apertium-kaz/apertium-kaz.kaz.lexc ./apertium-sah/apertium-sah.sah.lexc ./apertium-tat/apertium-tat.tat.lexc ./apertium-ava/apertium-ava.ava.lexc ./apertium-kum/apertium-kum.kum.lexc ./apertium-kir/apertium-kir.kir.lexc

And check that they do not cause any errors when running the script. The output of the task will be a list of lexc files, and if they work or not. The working files should have images produced by dot from GraphViz like:

cat ./apertium-kir/apertium-kir.kir.lexc | python3 lexc2dot.py | dot -Tpng -okir.lexc.png

Task tags

  • python
  • lexc
  • graphviz

Students who completed this task

Zain Ali

Task type

  • done_all Quality Assurance
close

2017