Difference between revisions of "Extract"
m (libghc6-regex-compat-dev note) |
Darthxaher (talk | contribs) |
||
Line 17: | Line 17: | ||
</pre> |
</pre> |
||
== Troubleshooting == |
|||
If you are using '''apertium2extract''' to convert from Apertium paradigms to Extract paradigms and using Ubuntu 9.04, you might encounter this error when you run the script for the first time. |
|||
==External links== |
==External links== |
Revision as of 12:17, 17 August 2009
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.
Note: on Debian/Ubuntu, you will need to install the libghc6-regex-compat-dev
package.
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")} ;
Troubleshooting
If you are using apertium2extract to convert from Apertium paradigms to Extract paradigms and using Ubuntu 9.04, you might encounter this error when you run the script for the first time.
External links
- apertium2extract — a script for converting Apertium paradigms to Extract paradigms.
- Lexicon Extraction Tool