/
hal2012-phrase2012.h
56 lines (42 loc) · 1.15 KB
/
hal2012-phrase2012.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* hal2012-parser2012.h
*
* Created on: 01.07.2012
* Author: tobias
*/
#ifndef HAL2012_PHRASE2012_H_
#define HAL2012_PHRASE2012_H_
#include "hal2012-util2012.h"
#include "hal2012-grammar2012.h"
#include "hal2012-tagger2012.h"
#include "hal2012-xml2012.h"
#include "hal2012-database2012.h"
#include "hal2012-serialization.h"
#define EXTERN_C extern "C"
EXTERN_C char* check_config(const char* name, const char* _default);
namespace grammar2012 {
class phraser;
class phraser: public freehal_base {
private:
tagger* t;
grammar* g;
const string join(vector<word>&);
void arrange(vector<word>&, boost::shared_ptr<xml_fact>);
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version) {
}
public:
phraser();
~phraser();
const string phrase(boost::shared_ptr<xml_fact>);
void set_tagger(tagger*);
void set_grammar(grammar*);
tagger* get_tagger() const;
grammar* get_grammar() const;
};
vector<word>& operator <<(vector<word>&,
const vector<boost::shared_ptr<xml_obj> >&);
vector<word>& operator <<(vector<word>&, boost::shared_ptr<xml_obj>);
}
#endif /* HAL2012_PHRASE2012_H_ */