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

#include <span_utils.h>

Public Types

typedef std::pair< int, int > relation_t
 

Static Public Member Functions

static void get_all_relations (const Span *span, std::vector< relation_t > &relations)
 
static void get_all_left_relations (const Span *span, std::vector< relation_t > &relations)
 
static void get_all_right_relations (const Span *span, std::vector< relation_t > &relations)
 
static void get_all_modifier_words (const Span *span, std::vector< word_t > &modifying_words)
 
static void get_all_linearized_indices (const Span *span, std::vector< int > &indices)
 
static void get_all_modifier_postags (const Span *span, std::vector< postag_t > &modifying_postags)
 
static void get_all_linearized_words (const Span *span, std::vector< word_t > &words)
 
static void get_all_linearized_postags (const Span *span, std::vector< postag_t > &postags)
 

Member Typedef Documentation

typedef std::pair<int, int> ZGen::BestFirst::SpanUtils::relation_t

Member Function Documentation

void ZGen::BestFirst::SpanUtils::get_all_left_relations ( const Span span,
std::vector< relation_t > &  relations 
)
static

Get all the (head, left modifier) relations from the spans.

Parameters
[in]spanThe input span.
[out]relationsThe output relations.
void ZGen::BestFirst::SpanUtils::get_all_linearized_indices ( const Span span,
std::vector< int > &  indices 
)
static
void ZGen::BestFirst::SpanUtils::get_all_linearized_postags ( const Span span,
std::vector< postag_t > &  postags 
)
static

Get the linearized postags from the span.

Parameters
[in]spanThe input span.
[out]postagsThe output postags.
void ZGen::BestFirst::SpanUtils::get_all_linearized_words ( const Span span,
std::vector< word_t > &  words 
)
static

Get all the words from the span.

Parameters
[in]spanThe input span.
[out]wordsThe output word sequence.
void ZGen::BestFirst::SpanUtils::get_all_modifier_postags ( const Span span,
std::vector< postag_t > &  modifying_postags 
)
static

Get all the modifying postags for the span.

Parameters
[in]spanThe input span.
[out]modifying_postagsThe output modifying postags.
void ZGen::BestFirst::SpanUtils::get_all_modifier_words ( const Span span,
std::vector< word_t > &  modifying_words 
)
static

Get all the modifying words for the span.

Parameters
[in]spanThe input span.
[out]modifying_wordsThe output modifying words.
void ZGen::BestFirst::SpanUtils::get_all_relations ( const Span span,
std::vector< relation_t > &  relations 
)
static

Get all the dependency relations from the span.

Parameters
[in]spanThe input span.
[out]relationsThe output relations.
void ZGen::BestFirst::SpanUtils::get_all_right_relations ( const Span span,
std::vector< relation_t > &  relations 
)
static

Get all the (head, right modifier) relations from the spans.

Parameters
[in]spanThe input span.
[out]relationsThe output relations.

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