Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
resources:morph-it [2018/05/03 10:48] – created eros | resources:morph-it [2018/05/03 10:55] (current) – eros | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Morph-IT - A free morphological lexicon for the Italian Language | + | ====== Morph-it! ====== |
+ | |||
+ | **A Free Morphological Lexicon for the Italian Language** | ||
by Marco Baroni ([[marco.baroni@unitn.it]]) and Eros Zanchetta ([[eros@sslmit.unibo.it]]) | by Marco Baroni ([[marco.baroni@unitn.it]]) and Eros Zanchetta ([[eros@sslmit.unibo.it]]) | ||
Line 22: | Line 24: | ||
The remainder of this document contains a commented list of the morphological features used in the lexicon, licensing information and aknowledgments. | The remainder of this document contains a commented list of the morphological features used in the lexicon, licensing information and aknowledgments. | ||
+ | |||
+ | ===== Download ===== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
===== Features ===== | ===== Features ===== | ||
Line 225: | Line 233: | ||
'' | '' | ||
+ | |||
'' | '' | ||
+ | |||
'' | '' | ||
Line 237: | Line 247: | ||
" | " | ||
+ | |||
+ | ===== Creating a MySQL version ===== | ||
+ | |||
+ | This mini-howto guides you through the creation of a mysql version of Morph-it! | ||
+ | |||
+ | You need a working installation of MySQL on your server and CREATE privileges | ||
+ | |||
+ | Step 1: create a new database: | ||
+ | |||
+ | <code sql> | ||
+ | CREATE DATABASE morphit; | ||
+ | </ | ||
+ | |||
+ | Step 2: change to the newly created database: | ||
+ | |||
+ | <code sql> | ||
+ | USE morphit; | ||
+ | </ | ||
+ | |||
+ | Step 3: create a new table (adjust version number in COMMENT): | ||
+ | |||
+ | <code sql> | ||
+ | CREATE TABLE `morphit` ( | ||
+ | `form` varchar(255) NOT NULL default '', | ||
+ | `lemma` varchar(255) NOT NULL default '', | ||
+ | `features` varchar(255) NOT NULL default '' | ||
+ | ) TYPE=MyISAM COMMENT=' | ||
+ | </ | ||
+ | |||
+ | Step 4: load data into table: | ||
+ | |||
+ | <code sql> | ||
+ | LOAD DATA LOCAL INFILE '/ | ||
+ | INTO TABLE morphit | ||
+ | FIELDS TERMINATED BY ' | ||
+ | </ | ||
+ | |||
+ | Step 5: add a primary key: | ||
+ | |||
+ | <code sql> | ||
+ | ALTER TABLE `morphit`.`morphit` | ||
+ | ADD COLUMN `id` INT(11) NOT NULL AUTO_INCREMENT FIRST, | ||
+ | ADD PRIMARY KEY(`id`); | ||
+ | </ | ||
===== Licensing information ===== | ===== Licensing information ===== |