Giter Club home page Giter Club logo

ud_north_saami's Introduction

UD_North_Saami

Files:

  • sme-udep.xml: Tree transformation rules for Giella-style dependency trees to UD-style.

Prerequisites:

  • vislcg3
  • matxin
  • ud-scripts

Using this stuff:

The source corpus, which has been manually disambiguated morphologically and annotated for syntactic function:

http://victorio.uit.no/langtech/trunk/langs/sme/test/data/functionsCG.corr.txt

You will need the dependency parser from:

http://victorio.uit.no/langtech/trunk/giella-shared/smi/src/syntax/dependency.cg3

Apply the dependency parser to the corpus:

   cat functionsCG.corr.txt | vislcg3 --grammar dependency.cg3 | sed 's/CLB #/CLB @CLB #/g' > functionsCG.dep.txt

You can compile the sme-udep.xml file using matxin-preprocess-transfer:

  matxin-preprocess-transfer sme-udep.xml sme-udep.bin

Then convert the annotated corpus to Matxin XML:

  cat functionsCG.dep.txt | vislcg3-to-conllu.py | conllu-to-matxin.py > functionsCG.dep.xml

And apply the transformations:

  cat functionsCG.dep.xml | matxin-transfer sme-udep.bin > functionsCG.u-dep.xml

And then convert to CoNLL-U:

  cat functionsCG.u-dep.xml | matxin-to-conllu.py > sme-ud-train.conllu

ud_north_saami's People

Contributors

ftyers avatar

Watchers

 avatar James Cloos avatar Flammie Pirinen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.