Difference between revisions of "Extract"

From Apertium
Jump to navigation Jump to search
Line 18: Line 18:
 
==External links==
 
==External links==
   
  +
* [http://xixona.dlsi.ua.es/~fran/apertium2extract.py apertium2extract] — a script for converting Apertium paradigms to Extract paradigms.
 
* [http://www.cs.chalmers.se/~markus/extract Lexicon Extraction Tool]
 
* [http://www.cs.chalmers.se/~markus/extract Lexicon Extraction Tool]
   

Revision as of 07:42, 30 September 2008

The extract tool is a program for matching word forms (for example from a corpus) to lemmata and paradigms. The paradigms in extract are not the same as Apertium paradigms in that they can contain both "inclusions" and "exclusions" for matching purposes. For example, if you wanted to match nouns but not verbs in English, you might write an extract paradigm saying "root + s", but not "root + ing".

There are two versions of extract, the first version supports Unicode (although not in paradigm names), the second doesn't support Unicode, but supports a system of constraints. For Apertium use, I recommend the first version. Any constraints can be applied using the constraint grammar.

Example paradigm

Extract

The lemma is formed by adding "f" to the stem, the plural is formed by adding "ves" to the stem, and adding "fing" to the stem is forbidden.

paradigm wol_f__n = 
        x+"f"
        { x+"ves" & ~(x+"fing")} ;

External links