Code Monkey home page Code Monkey logo

inflect's Introduction

Instructions for students

In this assignment, your task is to take a sequence of Czech lemmas and produce the correct inflection for each of them. Since the data used in the assignment is licensed under the LDC, the assignment is written to require an account on the CLSP servers. Please contact Matt Post if you would like information on how to extract the PDT information from your own copy of the LDC catalog.

Originally developed for our Machine Translation course at Johns Hopkins University.

Setup instructions (for instructors)

To setup the data, you need access to LDC2006T01. Set the environment variable $LDC2006T01 to point to the location of this data, then run

./scripts/extract.sh

You need Python 2.7. If you wish to parallelize the extraction (which takes a few hours), see that script for more info. Once the extraction is done, gather all the individually extracted files together:

mkdir data
for dir in train dtest etest; do 
  for type in lemma form tag tree; do 
    cat plain/$LDC2006T01/data/full/amw/$dir*/*.$type > data/$dir.$type
  done
done

This will create files in the data/ subdirectory corresponding to the files indicated in the assignment instructions.

Make sure to change the permissions of the test data so prevent peeking at the test data.

chmod 600 data/etest.form

inflect's People

Contributors

mjpost avatar

Watchers

 avatar James Cloos avatar  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.