[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
external:tectomt:tutorial [2009/01/20 17:57]
popel
external:tectomt:tutorial [2009/01/20 18:10]
popel
Line 287: Line 287:
 ==== Task ==== ==== Task ====
 A block which, given an analytical tree (''SEnglishA''), fills each ''a-node'' with boolean attribute ''is_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_head'' which is set to ''1'' if the ''a-node'' corresponds to a finite verb, and to ''0'' otherwise.
 +
  
  
Line 319: Line 320:
         brunblocks -S -o \         brunblocks -S -o \
                 Tutorial::Mark_heads \                 Tutorial::Mark_heads \
-                Tutorial::Print_finite_clauses -- sample.tmt+                Tutorial::Print_finite_clauses 
 +        -- sample.tmt
 </code> </code>
  
 You are going to need these methods: You are going to need these methods:
  
-  * ''my root = $bundle->get_tree('tree_name')''+  * ''my $root = $bundle->get_tree('tree_name')''
   * ''my $attr = $node->get_attr('attr_name')''   * ''my $attr = $node->get_attr('attr_name')''
   * ''$node->set_attr('attr_name',$attr_value)''   * ''$node->set_attr('attr_name',$attr_value)''
   * ''my @eff_children = $node->get_eff_children()''   * ''my @eff_children = $node->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.
  
  

[ Back to the navigation ] [ Back to the content ]