Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
external:tectomt:tutorial [2009/01/22 10:58] kravalova |
external:tectomt:tutorial [2009/01/22 11:03] kravalova |
==== Task ==== | ==== Task ==== |
A block which, given an analytical tree (''SEnglishA''), fills each ''a-node'' with boolean attribute ''is_clause_head'' which is set to ''1'' if the ''a-node'' corresponds to a finite verb, and to ''0'' otherwise. | A block which, given an analytical tree (''SEnglishA''), fills each ''a-node'' with boolean attribute ''is_clause_head'' which is set to ''1'' if the ''a-node'' corresponds to a finite verb, and to ''0'' otherwise. |
| |
| |
| |
| |
* ''my @eff_children = $node<nowiki>-></nowiki>get_eff_children()'' | * ''my @eff_children = $node<nowiki>-></nowiki>get_eff_children()'' |
| |
//Note//: ''get_children()'' returns topological node children in a tree, while ''get_eff_children()'' returns node children in a linguistic sense. Mostly, these do not differ. | //Note//: ''get_children()'' returns topological node children in a tree, while ''get_eff_children()'' returns node children in a linguistic sense. Mostly, these do not differ. If interested, see Figure 1 in [[http://ufal.mff.cuni.cz/pdt2.0/doc/tools/tred/bn-tutorial.html|btred tutorial]]. |
| |
==== Advanced version ==== | ==== Advanced version ==== |
| |
**Advanced version**: What happens in case of multiword prepositions? For example, ''because of'', ''instead of''. Can you handle it? | **Advanced version**: What happens in case of multiword prepositions? For example, ''because of'', ''instead of''. Can you handle it? |
| |
| |
| |
| |
| |
===== Further information ===== | ===== Further information ===== |
* [[http://ufallab2.ms.mff.cuni.cz/~bojar/cruise_control_tmt/last_doc/generated/guide/guidelines.html|TectoMT Developer's Guide]] - obsolete | * [[http://ufallab2.ms.mff.cuni.cz/~bojar/cruise_control_tmt/last_doc/generated/guide/guidelines.html|TectoMT Developer's Guide]] |
* Questions? Ask ''kravalova'' at ''ufal.mff.cuni.cz'' | * Questions? Ask ''kravalova'' at ''ufal.mff.cuni.cz'' |
* Solutions to this tutorial tasks are in ''libs/blocks/Tutorial/*solution*.pm''. | * Solutions to this tutorial tasks are in ''libs/blocks/Tutorial/*solution*.pm''. |
* [[http://ufal.mff.cuni.cz/~pajas/tred/|TrEd]] - tree editor | * [[http://ufal.mff.cuni.cz/~pajas/tred/|TrEd]], [[http://ufal.mff.cuni.cz/~pajas/tred/ar01-toc.html|TrEd User's Manual]] - tree editor |
| |
| |
| |