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:44] kravalova |
external:tectomt:tutorial [2009/01/22 11:01] kravalova |
||
---|---|---|---|
Line 124: | Line 124: | ||
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 152: | ||
* 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 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 equivalently stored as the lower node's attributes. Tree's attributes must be stored as attributes of the root node. | ||
+ | |||
+ | |||
Line 213: | Line 216: | ||
we can examine our '' | we can examine our '' | ||
- | |||
- | You can view the trees in '' | ||
- | |||
- | <code bash> | ||
- | tmttred sample.tmt | ||
- | </ | ||
Blocks can also be parametrized. For syntax parser, we might want to use a smaller but faster model. To achieve this, replace the line | Blocks can also be parametrized. For syntax parser, we might want to use a smaller but faster model. To achieve this, replace the line | ||
Line 231: | Line 228: | ||
SEnglishM_to_SEnglishA:: | SEnglishM_to_SEnglishA:: | ||
</ | </ | ||
+ | |||
+ | You can view the trees in '' | ||
+ | |||
+ | <code bash> | ||
+ | tmttred sample.tmt | ||
+ | </ | ||
+ | |||
+ | Try to click on some nodes to see their parameters (tag, lemma, form, analytical function etc). | ||
Line 288: | Line 293: | ||
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 328: | Line 340: | ||
==== Task ==== | ==== Task ==== | ||
A block which, given an analytical tree ('' | A block which, given an analytical tree ('' | ||
+ | |||
+ | |||
Line 376: | Line 390: | ||
* '' | * '' | ||
- | //Note//: '' | + | //Note//: '' |
==== Advanced version ==== | ==== Advanced version ==== |