Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
external:tectomt:tutorial [2009/01/22 10:53] kravalova |
external:tectomt:tutorial [2009/01/22 11:50] kravalova |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== TectoMT Tutorial ====== | ====== TectoMT Tutorial ====== | ||
- | Welcome at TectoMT Tutorial. This tutorial should take about 2 hours. | + | Welcome at TectoMT Tutorial. This tutorial should take about 3 hours. |
Line 7: | Line 8: | ||
===== What is TectoMT ===== | ===== What is TectoMT ===== | ||
- | TectoMT is a highly modular NLP (Natural Language Processing) software system implemented in Perl programming language under Linux. It is primarily aimed at Machine Translation, | + | TectoMT is a highly modular NLP (Natural Language Processing) software system implemented in Perl programming language under Linux. It is primarily aimed at Machine Translation, |
Line 20: | Line 21: | ||
* Your shell is bash | * Your shell is bash | ||
* You have basic experience with bash and can read basic Perl | * You have basic experience with bash and can read basic Perl | ||
+ | |||
+ | |||
Line 34: | Line 37: | ||
==== Installation and setup ==== | ==== Installation and setup ==== | ||
- | * Checkout SVN repository. If you are running this installation in computer lab in Prague, you have to checkout the repository into directory ''/ | + | * Checkout SVN repository. If you are running this installation in computer lab in Prague, you have to checkout the repository into directory ''/ |
<code bash> | <code bash> | ||
cd ~/BIG | cd ~/BIG | ||
- | svn --username | + | svn --username |
</ | </ | ||
Line 124: | Line 127: | ||
There are also other directories for other purpose blocks, for example blocks which only print out some information go to '' | There are also other directories for other purpose blocks, for example blocks which only print out some information go to '' | ||
+ | |||
Line 151: | Line 155: | ||
* A document consists of a sequence of bundles (''< | * A document consists of a sequence of bundles (''< | ||
* Each bundle contains tree shaped sentence representations on various linguistic layers. In our example '' | * Each bundle contains tree shaped sentence representations on various linguistic layers. In our example '' | ||
- | * Trees are formed by nodes and edges. Attributes can be attached only to nodes. Edge's attributes must be equivalently | + | * Trees are formed by nodes and edges. Attributes can be attached only to nodes. Edge's attributes must be stored as the lower node's attributes. Tree's attributes must be stored as attributes of the root node. |
+ | |||
Line 207: | Line 213: | ||
</ | </ | ||
- | //Note//: Makefiles use tabulators to mark command lines. Make sure your lines start with tabulator (or two tabulators) and not, for example, with 4 spaces. | + | //Note//: Makefiles use tabulators to mark command lines. Make sure your lines start with a tabulator (or two tabulators) and not, for example, with 4 spaces. |
After running | After running | ||
Line 236: | Line 242: | ||
Try to click on some nodes to see their parameters (tag, lemma, form, analytical function etc). | Try to click on some nodes to see their parameters (tag, lemma, form, analytical function etc). | ||
+ | |||
+ | //Note//: For more information about tree editor TrEd, see [[http:// | ||
+ | |||
+ | |||
Line 291: | Line 301: | ||
Attributes of documents, bundles or nodes can be accessed by attribute getters and setters, for example: | Attributes of documents, bundles or nodes can be accessed by attribute getters and setters, for example: | ||
+ | |||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | Some interesting attributes on morphologic layer are '' | ||
+ | |||
+ | <code bash> | ||
+ | tmttred sample.tmt | ||
+ | </ | ||
Our tutorial block '' | Our tutorial block '' | ||
Line 331: | Line 348: | ||
==== Task ==== | ==== Task ==== | ||
A block which, given an analytical tree ('' | A block which, given an analytical tree ('' | ||
+ | |||
+ | |||
+ | |||
Line 379: | Line 399: | ||
* '' | * '' | ||
- | //Note//: '' | + | //Note//: '' |
+ | |||
+ | //Hint//: Finite clauses in English usually require grammatical subject to be present. | ||
==== Advanced version ==== | ==== Advanced version ==== | ||
Line 388: | Line 410: | ||
===== Your turn: more tasks ===== | ===== Your turn: more tasks ===== | ||
+ | |||
Line 410: | Line 433: | ||
**Instructions**: | **Instructions**: | ||
+ | * You can use block template in '' | ||
* To find an object to a verb, look for objects among effective children of a verb ('' | * To find an object to a verb, look for objects among effective children of a verb ('' | ||
* For debugging, a method returning surface word order of a node is useful: '' | * For debugging, a method returning surface word order of a node is useful: '' | ||
Line 415: | Line 439: | ||
**Advanced version**: This solution shifts object (or more objects) of a verb just in front of that verb node. So f.e.: //Mr. Brown has urged MPs.// changes to: //Mr. Brown has MPs urged.// You can try to change this solution, so the final sentence would be: //Mr. Brown MPs has urged.// You may need a method '' | **Advanced version**: This solution shifts object (or more objects) of a verb just in front of that verb node. So f.e.: //Mr. Brown has urged MPs.// changes to: //Mr. Brown has MPs urged.// You can try to change this solution, so the final sentence would be: //Mr. Brown MPs has urged.// You may need a method '' | ||
+ | |||
Line 465: | Line 490: | ||
// | // | ||
* On analytical layer, you can use this test to recognize prepositions: | * On analytical layer, you can use this test to recognize prepositions: | ||
- | * You can use block template in '' | ||
* To see the results, you can again use TrEd ('' | * To see the results, you can again use TrEd ('' | ||
**Advanced version**: What happens in case of multiword prepositions? | **Advanced version**: What happens in case of multiword prepositions? | ||
+ | |||
+ | |||
===== Further information ===== | ===== Further information ===== | ||
- | * [[http:// | + | * [[http:// |
* Questions? Ask '' | * Questions? Ask '' | ||
* Solutions to this tutorial tasks are in '' | * Solutions to this tutorial tasks are in '' | ||
- | * [[http:// | + | * [[http:// |
- | + | ||