Generated documentation for pml/PML_A2T.mak

PML_A2T

back

PML_A2T.mak - Helper macros for writing an a- to t-layer transformations over the Prague Dependency Treebank (PDT) 2.0 data

CreateTFile($a_file?)

Creates and returns empty t-file (Treex::PML::Document object) linked with a given a-file. It associates the newly created file with tdata_schema.xml PML schema. If no a_file is given, current file is used. Initially, the newly created t-file contains no trees. Trees can be added using AddNewTTree.

AddNewTTree($t_file?)

Creates a new t-tree linked with the current a-tree and appends the newly created t-tree to a given t-file. Initially the t-tree consists of the root node alone. More nodes can be added e.g. using PML_T::NewNode($parent) and linked to a-nodes using PML_A::AddANodeToALexRf and PML_A::AddANodeToAAuxRf.

If no t-file is given, the t-file currently associated with the current a-file is used (if any). See also more generic macro InitTTree.

InitTTree($t_file,$t_root,$a_root)

Initialize a given t-root node based on a given a-root node. Empty t-root node to be used with this function can be created using either NewTree or NewTreeAfter macros, or by a direct call to $t_file-new_tree($file_position)>.