NAME

PMLTQ::Relation::PDT - PDT user defined relations

VERSION

version 1.1.0

DiveAuxCP($node)

You can use this function as a through argument to GetEParents and GetEChildren. It skips all the prepositions and conjunctions when looking for nodes which is what you usually want.

AGetEParents($node,$through)

Return linguistic parent of a given node as appears in an analytic tree. The argument $through should supply a function accepting one node as an argument and returning true if the node should be skipped on the way to parent or 0 otherwise. The most common DiveAuxCP is provided in this package.

AGetEChildren($node,$dive)

Return a list of nodes linguistically dependant on a given node. $dive is a function which is called to test whether a given node should be used as a terminal node (in which case it should return false) or whether it should be skipped and its children processed instead (in which case it should return true). Most usual treatment is provided in DiveAuxCP. If $dive is skipped, a function returning 0 for all arguments is used.

ExpandCoord($node,$keep?)

If the given node is coordination or aposition (according to its TGTS functor - attribute functor) expand it to a list of coordinated nodes. Otherwise return the node itself. If the argument keep is true, include the coordination/aposition node in the list as well.

IsCoord($node?)

Check if the given node is a coordination according to its TGTS functor (attribute functor)

TGetEParents($node)

Return linguistic parents of a given node as appear in a TG tree.

GetEChildren($node?)

Return a list of nodes linguistically dependant on a given node.

AUTHORS

  • Petr Pajas <pajas@ufal.mff.cuni.cz>

  • Jan Štěpánek <stepanek@ufal.mff.cuni.cz>

  • Michal Sedlák <sedlak@ufal.mff.cuni.cz>

  • Matyáš Kopp <matyas.kopp@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Institute of Formal and Applied Linguistics (http://ufal.mff.cuni.cz).

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.