Code Monkey home page Code Monkey logo

cherokeelemmatizer's Introduction

CherokeeLemmatizer

Utility to analyze Cherokee language texts.

  • Generate likely lemmas.
  • Show likely affixes.

Developed for use with the Moses Machine Translation software.

build:

./gradlew clean build fatjar

run: cat text.in | java -jar build/libs/CherokeeLemmatizer.jar > text.out

Where text.in is assumed to be pre-tokenized text. And text.out is output in "factored" format for use by translation systems like Moses-SMT.

The output format looks like:

ᏃᏊᏍ|ᎣᏊᏍ|Ꮒ-| ᏗᏥᏲᏟ|ᏗᏥᏲᏟ|| ,|,|| ᏛᏨᏃᏎᎵ|ᎥᏨᏃᏒᎢ|Ꮥ-|-ᎡᎵ ᏥᏔᎦ|ᏔᎦ|Ꮵ-| ᏄᏛᏂᏗ|ᎤᏛᏂᏗ|Ꮒ-| ᎦᏅᏅᎢ|ᎦᏅᏅᎢ|| ᏧᏂᏗᏫᏍᏗᎢ|ᏧᏂᏗᏫᏍᏗᎢ|| .|.||

Where each entry on a line corresponds to a word in the source text. Each entry consists of:

surface-form|lemma|prefixes|suffixes

Where:

  • surface-form = original word in text
  • lemma = guessed lemma for the original word.
  • prefixes = guessed sequence of prefixes applied to the lemma
  • suffixes = guessed sequence of suffixes applied to the lemma

Note:

  • The program uses heuristics via regex pattern matches to extract the likely prefixes and suffixes. The program will generated incorrect lemma|prefix|suffix results for some words which match the lookup patterns, but are already in their "lemma" form.

See examples for some example input/output files.

cherokeelemmatizer's People

Contributors

michael-conrad avatar michael-joyner avatar

Stargazers

 avatar

Watchers

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