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 14:06] kravalova |
external:tectomt:tutorial [2009/04/01 10:46] ptacek |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== TectoMT Tutorial ====== | ====== TectoMT Tutorial ====== | ||
- | Welcome | + | Welcome |
Line 21: | 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 43: | Line 45: | ||
<code bash> | <code bash> | ||
cd ~/BIG | cd ~/BIG | ||
- | svn --username | + | svn --username |
</ | </ | ||
+ | |||
+ | * accept the certificate and provide a password which is same as the username ie. : //public// | ||
* In '' | * In '' | ||
Line 146: | Line 150: | ||
Once you have TectoMT installed on your machine, you can find this tutorial in '' | Once you have TectoMT installed on your machine, you can find this tutorial in '' | ||
- | Most applications are defined in Makefiles, which describe sequence of blocks to be applied on our data. In our particular '' | + | Most applications are defined in '' |
We can run the application: | We can run the application: | ||
Line 160: | Line 164: | ||
* 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 stored as the lower node's attributes. Tree's attributes must be stored as attributes of the root node. | * 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 220: | Line 225: | ||
</ | </ | ||
- | //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 252: | Line 257: | ||
//Note//: For more information about tree editor TrEd, see [[http:// | //Note//: For more information about tree editor TrEd, see [[http:// | ||
- | If you are not familiar with Makefile syntax, another way of running a scenario in TectoMT is using '' | + | If you are not familiar with '' |
<code bash> | <code bash> | ||
- | eval ${TMT_ROOT}/ | + | $TMT_ROOT/ |
brunblocks -S -o --scen tutorial.scen -- sample.tmt | brunblocks -S -o --scen tutorial.scen -- sample.tmt | ||
</ | </ | ||
Line 328: | Line 333: | ||
</ | </ | ||
- | Our tutorial block '' | + | Our tutorial block '' |
<code bash> | <code bash> | ||
Line 366: | Line 371: | ||
==== Task ==== | ==== Task ==== | ||
A block which, given an analytical tree ('' | A block which, given an analytical tree ('' | ||
+ | |||