#include <span_utils.h>
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] | span | The input span. |
[out] | relations | The 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] | span | The input span. |
[out] | postags | The 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] | span | The input span. |
[out] | words | The 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] | span | The input span. |
[out] | modifying_postags | The 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] | span | The input span. |
[out] | modifying_words | The 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] | span | The input span. |
[out] | relations | The 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] | span | The input span. |
[out] | relations | The output relations. |
The documentation for this class was generated from the following files: