FreeLing  4.0
Public Member Functions | Static Public Member Functions | Private Attributes
freeling::dep_tree Class Reference

class dep_tree stores a dependency tree More...

#include <language.h>

Inheritance diagram for freeling::dep_tree:
Inheritance graph
[legend]
Collaboration diagram for freeling::dep_tree:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 dep_tree ()
 tree<node>& depnode::get_link_ref() { return (link);} /// (useful for Java API)
 dep_tree (const depnode &)
dep_tree::const_iterator get_node_by_pos (size_t) const
 get depnode corresponding to word in given position
dep_tree::iterator get_node_by_pos (size_t)
 get depnode corresponding to word in given position
void rebuild_node_index ()
 rebuild index maintaining words positions

Static Public Member Functions

static size_t get_first_word (dep_tree::const_iterator)
 obtain position of first/last word in the span subsumed by a dep_tree
static size_t get_last_word (dep_tree::const_iterator)
 obtain position of last word in the span subsumed by a dep_tree
static void PrintDepTree (dep_tree::const_iterator n, int depth)
 print a dependency tree (debugging purposes mainly)

Private Attributes

std::vector< dep_tree::iteratorword_index

Detailed Description

class dep_tree stores a dependency tree


Constructor & Destructor Documentation

tree<node>& depnode::get_link_ref() { return (link);} /// (useful for Java API)

class dep_tree stores a dependency tree Constructors for dep_tree


Member Function Documentation

obtain position of first/last word in the span subsumed by a dep_tree

obtain position of first word in the span subsumed by a dep_tree

References freeling::basic_tree_iterator< T, N >::sibling_begin(), and freeling::basic_tree_iterator< T, N >::sibling_end().

obtain position of last word in the span subsumed by a dep_tree

References freeling::basic_tree_iterator< T, N >::sibling_begin(), and freeling::basic_tree_iterator< T, N >::sibling_end().

get depnode corresponding to word in given position

get depnode corresponding to word in given position, const iterator

References word_index.

get depnode corresponding to word in given position

get depnode corresponding to word in given position, normal iterator

References word_index.

rebuild index maintaining words positions

rebuild index maintaining word positions

References freeling::tree< depnode >::begin(), freeling::tree< depnode >::end(), and word_index.


Member Data Documentation


The documentation for this class was generated from the following files: