ZGen  0.2.0
a linearization system for natural language.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
ZGen::DependencyParse Struct Reference

#include <instance.h>

Public Types

typedef std::pair< int, int > range_t
 

Public Member Functions

void clear ()
 For extra. More...
 
void push_back (const word_t &form, const postag_t &postag, const int head, const deprel_t &deprel)
 
void push_back (const word_t &form, const postag_t &postag, const int head, const deprel_t &deprel, const std::string &extra)
 
void push_back (const word_t &form, const postag_t &postag, const int head, const deprel_t &deprel, const std::vector< word_t > &extended_words, const range_t &phrase, bool is_phrase)
 
void push_back (const word_t &form, const postag_t &postag, const int head, const deprel_t &deprel, const std::vector< word_t > &extended_words, const range_t &phrase, bool is_phrase, const std::string &extra)
 
size_t size () const
 
word_t form (int index) const
 
postag_t postag (int index) const
 

Public Attributes

std::vector< word_tforms
 
std::vector< postag_tpostags
 
std::vector< int > heads
 The postags. More...
 
std::vector< deprel_tdeprels
 The heads. More...
 
std::vector< word_twords
 The dependency relation. More...
 
std::vector< range_tphrases
 
std::vector< bool > is_phrases
 
std::vector< std::string > extras
 Record whether ith item is phrase. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const DependencyParse &d)
 

Member Typedef Documentation

typedef std::pair<int, int> ZGen::DependencyParse::range_t

Member Function Documentation

void ZGen::DependencyParse::clear ( )

For extra.

word_t ZGen::DependencyParse::form ( int  index) const
postag_t ZGen::DependencyParse::postag ( int  index) const
void ZGen::DependencyParse::push_back ( const word_t form,
const postag_t postag,
const int  head,
const deprel_t deprel 
)
void ZGen::DependencyParse::push_back ( const word_t form,
const postag_t postag,
const int  head,
const deprel_t deprel,
const std::string &  extra 
)
void ZGen::DependencyParse::push_back ( const word_t form,
const postag_t postag,
const int  head,
const deprel_t deprel,
const std::vector< word_t > &  extended_words,
const range_t phrase,
bool  is_phrase 
)
void ZGen::DependencyParse::push_back ( const word_t form,
const postag_t postag,
const int  head,
const deprel_t deprel,
const std::vector< word_t > &  extended_words,
const range_t phrase,
bool  is_phrase,
const std::string &  extra 
)
size_t ZGen::DependencyParse::size ( ) const

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DependencyParse d 
)
friend

Member Data Documentation

std::vector<deprel_t> ZGen::DependencyParse::deprels

The heads.

std::vector<std::string> ZGen::DependencyParse::extras

Record whether ith item is phrase.

std::vector<word_t> ZGen::DependencyParse::forms
std::vector<int> ZGen::DependencyParse::heads

The postags.

std::vector<bool> ZGen::DependencyParse::is_phrases
std::vector<range_t> ZGen::DependencyParse::phrases
std::vector<postag_t> ZGen::DependencyParse::postags

The heads. For the pre-recognized NP, just the head is stored in forms.

std::vector<word_t> ZGen::DependencyParse::words

The dependency relation.


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