ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fixture2.h
Go to the documentation of this file.
1 #ifndef __ZGEN_UNITTEST_BESTFIRST_FIXTURE_2_H__
2 #define __ZGEN_UNITTEST_BESTFIRST_FIXTURE_2_H__
3 
4 #include "engine/engine.h"
5 #include "types/instance.h"
6 #include "utils/ioutils.h"
9 
10 struct Fixture2 {
12  : allocator(127, 128) {
13  namespace z = ZGen;
14  namespace io = ZGen::IO;
15  namespace bf = ZGen::BestFirst;
16  namespace eg = ZGen::Engine;
17 
18  std::stringstream S;
19  S << "__Ms._Haag__ _ -1 N" << std::endl
20  << "plays _ -1 N" << std::endl
21  << "__Elianti__ _ -1 N" << std::endl
22  << ". _ -1 N" << std::endl;
23 
25 
26  const z::dependency_t* inst = &data[0];
31 
35 
39 
43  }
44 
46 
54 
56  std::vector<ZGen::dependency_t> data;
57 };
58 
59 #endif // end for __ZGEN_UNITTEST_BESTFIRST_FIXTURE_2_H__
std::vector< ZGen::dependency_t > data
Definition: fixture2.h:56
Fixture2()
Definition: fixture2.h:11
bool link_left(const Span *modifier)
Definition: span.cc:59
Definition: postag_alphabet.h:36
span_t * span_0
Definition: fixture2.h:47
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
span_t * span_0_1
Definition: fixture2.h:51
ZGen::BestFirst::Span span_t
Definition: fixture2.h:45
span_t * span_0_1_2
Definition: fixture2.h:52
Definition: fixture2.h:10
span_t * span_3
Definition: fixture2.h:50
ZGen::BestFirst::SpanAllocator allocator
Definition: fixture2.h:55
span_t * span_2
Definition: fixture2.h:49
bool link_right(const Span *modifier)
Definition: span.cc:70
span_t * span_1
Definition: fixture2.h:48
Span * malloc()
Definition: span_allocator.cc:30
Definition: span_allocator.h:27
Definition: span.h:13
span_t * span_0_1_2_3
Definition: fixture2.h:53
Definition: postag_alphabet.h:43
Definition: postag_alphabet.h:39