1 #ifndef __ZGEN_UNITTEST_BESTFIRST_FIXTURE_1_H__
2 #define __ZGEN_UNITTEST_BESTFIRST_FIXTURE_1_H__
14 namespace io = ZGen::IO;
15 namespace bf = ZGen::BestFirst;
18 S <<
"__00_01__ NP 4 N" << std::endl
19 <<
"1 NP 2 N" << std::endl
20 <<
"2 VBZ 4 N" << std::endl
21 <<
"3 NNS 2 N" << std::endl
22 <<
"4 VBZ -1 N" << std::endl
23 <<
"5 JJ 6 N" << std::endl
24 <<
"6 NN 4 N" << std::endl
25 <<
"7 NP 4 N" << std::endl
26 <<
"8 CD 7 N" << std::endl
43 span_1_2_3->
copy(span_2);
44 span_1_2_3->link_left(span_1);
45 span_1_2_3->link_right(span_3);
48 span_5_6->
copy(span_6);
49 span_5_6->link_left(span_5);
52 span_7_8->
copy(span_7);
53 span_7_8->link_right(span_8);
65 std::vector<ZGen::dependency_t>
data;
68 #endif // end for __ZGEN_UNITTEST_BESTFIRST_FIXTURE_1_H__
bool link_left(const Span *modifier)
Definition: span.cc:59
Definition: fixture1.h:10
DependencyParse dependency_t
Definition: instance.h:70
void copy(const Span *other)
Definition: span.cc:25
int read_dependency_dataset(std::istream &is, std::vector< dependency_t > &data)
Definition: ioutils.cc:69
void init(const dependency_t *ref, int root_id, postag_t tag)
Definition: span.cc:14
Fixture1()
Definition: fixture1.h:11
bool link_right(const Span *modifier)
Definition: span.cc:70
ZGen::BestFirst::Span * root
Definition: fixture1.h:63
Span * malloc()
Definition: span_allocator.cc:30
std::vector< ZGen::dependency_t > data
Definition: fixture1.h:65
ZGen::BestFirst::SpanAllocator allocator
Definition: fixture1.h:64
Definition: span_allocator.h:27