-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhal2012-predefined2012.h
53 lines (42 loc) · 1.16 KB
/
hal2012-predefined2012.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
/*
* hal2012-parser2012.h
*
* Created on: 01.07.2012
* Author: tobias
*/
#ifndef HAL2012_PREDEFINED2012_H_
#define HAL2012_PREDEFINED2012_H_
#include "hal2012-util2012.h"
#include "hal2012-grammar2012.h"
#include "hal2012-tagger2012.h"
#include "hal2012-xml2012.h"
#include "hal2012-parser2012.h"
#include "hal2012-serialization.h"
#define EXTERN_C extern "C"
EXTERN_C char* check_config(const char* name, const char* _default);
namespace grammar2012 {
class predefined;
class predefined: public freehal_base {
private:
tagger* t;
grammar* g;
void try_greeting(const string&, string&);
void try_thanks(const string&, string&);
void try_random_question(const string&, string&);
void try_random_statement(const string&, string&);
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version) {
}
public:
predefined();
~predefined();
const string get_predefined_output(const string&);
const string get_random_output(sentence*);
void set_tagger(tagger*);
void set_grammar(grammar*);
tagger* get_tagger() const;
grammar* get_grammar() const;
};
}
#endif /* HAL2012_PREDEFINED2012_H_ */