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.

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

Retrieve the source code via anonymous subversion.

      $ svn co

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

      $ cd sblex
      $ ./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: link.

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.

   kan     kunna..vb.1:V@IPAS
   tänka   tänka..vb.1:V@N0AS
   massa   massa..nn.1+massa..nn.2:NCUSN@IS
   bedömare        bedömare..nn.1:NCUPN@IS
   politiska       politisk..av.1:AQP0PN0S
   aktörer aktör..nn.1:NCUPN@IS

© University of Gothenburg 2009, Box 100, 405 30 Gothenburg, Sweden
Tel +46 31 786 0000, Contact

About the site