KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Lexicon_db.h
Go to the documentation of this file.
1 #ifndef LEXICON_DB_H_
2 #define LEXICON_DB_H_
3 
11 #include "semantics/Token_map.h"
12 #include <string>
13 
14 namespace semantics
15 {
16 
17 class Lexicon_db : public Token_map
18 {
19 public:
20  static const Key_type& stop_key();
21  static const Key_type& low_freq_key();
22  static const Val_type& stop_code();
23 public:
25  Lexicon_db(std::string file);
26  const Key_type& unknown_key() {return low_freq_key();}
27 };
28 
29 };
30 
31 #endif
Lexicon_db()
Definition: Lexicon_db.h:24
static const Key_type & low_freq_key()
Definition: Lexicon_db.cpp:22
static const Val_type & stop_code()
Definition: Lexicon_db.cpp:27
const Key_type & unknown_key()
Definition: Lexicon_db.h:26
std::string Key_type
Definition: Token_map.h:23
Definition: Token_map.h:20
size_t Val_type
Definition: Token_map.h:24
static const Key_type & stop_key()
Definition: Lexicon_db.cpp:17
Definition: Lexicon_db.h:17