Giter Club home page Giter Club logo

gf-ud's Introduction

gf-ud

Conversions between GF and dependency trees, in particular UD (Universal Dependencies) but designed to be completely generic as for annotation scheme. This repository replaces the old gf-contrib/ud2gf code.

The conversions are based on algorithms presented in the papers

as well as some earlier code in gf-contrib/ud2gf and in gf-core/src/, mostly by Aarne Ranta and Prasanth Kolachina. Differences from those sources may be documented later.

To get started, you can test the following:

  • cd grammars
  • ln -s gf-summerschool-2018 # a sister Git repository
  • make mini
  • cd ..
  • make compile
  • cat test.conllu | ./gfud -ud2gf grammars/MiniLang Eng Utt at
  • cat test.gftrees | ./gfud -gf2ud grammars/MiniLang Eng Utt ud
  • echo "the black cat sees us" | ./gfud -string2gf2ud grammars/MiniLang Eng Utt

You can also follow the instructions in doc/training-and-testing.txt to test a combination with Malt parser.

The largest changes are perhaps in the format of dependency configurations. One goal was to merge the gf2ud and ud2gf annotations. See

  • grammars/MiniLang.labels
  • grammars/MiniLangEng.labels

for examples (to be documented properly later).

Other grammars to try are

  • grammars/ShallowParse # wide-coverage, with WordNet words but without sense distinctions, uses sister repo gf-wordnet/
  • grammars/Term # a grammar of arithmetic expression, completely different tagset

With ShallowParse, you can try out the included sample from https://github.com/UniversalDependencies/UD_English-PUD/blob/master/en_pud-ud-test.conllu

  • cat upto12eng.conllu | ./gfud -ud2gf grammars/ShallowParse Eng Text at stat

But the results are still meager, and require additions in ShallowParse.labels and maybe in the algorithm.

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.