1 #ifndef __ZGEN_BESTFIRST_SEARCH_SPAN_UTILS_H__
2 #define __ZGEN_BESTFIRST_SEARCH_SPAN_UTILS_H__
23 std::vector<relation_t>& relations);
32 std::vector<relation_t>& relations);
41 std::vector<relation_t>& relations);
50 std::vector<word_t>& modifying_words);
58 std::vector<int>& indices);
67 std::vector<postag_t>& modifying_postags);
76 std::vector<word_t>& words);
85 std::vector<postag_t>& postags);
94 static void get_all_relations_travel(
const Span* now,
95 std::vector<relation_t>& relations);
103 static void get_all_left_relations_travel(
const Span* span,
104 std::vector<relation_t>& relations);
112 static void get_all_right_relations_travel(
const Span* span,
113 std::vector<relation_t>& relations);
121 static void get_all_linearized_indices_travel(
const Span* now,
122 std::vector<int>& indices);
128 #endif // end for __ZGEN_BESTFIRST_SEARCH_SPAN_UTILS_H__
static void get_all_modifier_words(const Span *span, std::vector< word_t > &modifying_words)
Definition: span_utils.cc:84
static void get_all_left_relations(const Span *span, std::vector< relation_t > &relations)
Definition: span_utils.cc:36
static void get_all_linearized_indices(const Span *span, std::vector< int > &indices)
Definition: span_utils.cc:118
std::pair< int, int > relation_t
Definition: span_utils.h:14
static void get_all_modifier_postags(const Span *span, std::vector< postag_t > &modifying_postags)
Definition: span_utils.cc:102
static void get_all_linearized_postags(const Span *span, std::vector< postag_t > &postags)
Definition: span_utils.cc:157
static void get_all_right_relations(const Span *span, std::vector< relation_t > &relations)
Definition: span_utils.cc:60
static void get_all_relations(const Span *span, std::vector< relation_t > &relations)
Definition: span_utils.cc:8
static void get_all_linearized_words(const Span *span, std::vector< word_t > &words)
Definition: span_utils.cc:140
Definition: span_utils.h:12