Giter VIP home page Giter VIP logo

fm-sblex's Introduction

FM-SBLEX

Introduction

FM-SBLEX consists of three computational morphology tools for modern Swedish (SALDO), for 19th century Swedish (Dalin), and for Old Swedish. FM-SBLEX has been developed using the Functional Morphology library dead link.

Migrated to git from svn.

All tools in FM-SBLEX provide:

  • an inflection engine
  • a compiler to many standard lexicon formats
  • an analyzer
  • a synthesizer

Download and install

FM-SBLEX is licensed under GPL v3

Retrieve the source code via anonymous subversion.

$ svn co https://svn.spraakdata.gu.se/repos/sblex/pub/fm

You compile the software with the following commands. The compilation requires The Glasgow Haskell Compiler.

$ ./configure
$ make
$ sudo make install

This installs three binaries in /usr/local/bin named saldo, dalin, and fsv.

FM-SBLEX is also available at hackage: Hackage

Install with:

$ cabal install FM-SBLEX

Retrieve the development versions of the dictionaries (UTF-8 encoded):

Try it out (these commands print the dictionaries in linewise JSON format):

$ saldo saldo.dict -p lex
$ dalin dalin.dict -p lex
$ fsv fsv.dict -p lex

Using FM-SBLEX with a PoS tagger

We describe how to use saldo together with a PoS tagger to reduce the number of analyses (e.g., for lemmatization). It is analogous for the other tools.

  • Download Hunpos, a free POS tagger, together with an utf8-coded language model: suc2_parole_utf8.hunpos.gz trained on SUC2.

  • Run the tagger on the input data. The data should be arranged with one word per line and sentence boundaries marked with blank lines.

    $ cat data.txt | hunpos-tag suc2\_parole\_utf8.hunpos > data.txt.hunpos
    
  • Run the data through saldo with the result of the POS tagger as an argument:

    $ cat data.txt | saldo saldo.dict -t norm -e parole -r data.txt.hunpos > data\_saldo.txt
    

Example of an output. The sign '+' expresses alternative.

   Jag     jag..pn.1:PF@00S@S
   kan     kunna..vb.1:V@IPAS
   tänka   tänka..vb.1:V@N0AS
   mig     jag..pn.1:PF@00O@S
   att     att..sn.1:CSS
   en      en..al.1:D0@US@S
   massa   massa..nn.1+massa..nn.2:NCUSN@IS
   bedömare        bedömare..nn.1:NCUPN@IS
   och     och..kn.1:CCS
   politiska       politisk..av.1:AQP0PN0S
   aktörer aktör..nn.1:NCUPN@IS

fm-sblex's People

Contributors

kod-kristoff avatar marfors 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.