ufal / treex

Treex NLP framework
33 stars 6 forks source link

Aligned role, support for undirected access and filtering #48

Closed michnov closed 8 years ago

michnov commented 8 years ago

A new role Core::Node::Aligned for Core::Node, providing alignment accessors. It offers the original functions so far available in Core::Node as well as the additional functions from Tool::Align::Utils that access aligned nodes regardless the orientation of the links (undirected access). However, the two sources are not just stuck together in the target role. Functionality of some methods has been slightly modified. Namely:

get_aligned_nodes

There is one additional method delete_aligned_nodes_by_filtercombining get_aligned_nodes and delete_aligned_node. In this case, undirected access is default, if not set differently by the filter.

[ closes #47 ]

tuetschek commented 8 years ago

It looks really good to me :+1: . Just a question – what are the methods that are left in Treex::Tool::Align::Utils?

michnov commented 8 years ago

Treex::Tool::Align::Utils remains heterogenous with:

martinpopel commented 8 years ago

Good work, thanks. The remaining content of Treex::Tool::Align::Utils can be solved later.