My Project
 All Classes Namespaces Functions Pages
config.h
1 #pragma once
2 
3 #include <map>
4 #include <QtSql>
5 
6 using namespace std;
7 
8 namespace NLP
9 {
10 
11  const QString DB_PATH = "../../en_db.sqlite";
12  // Depending on where the build folder is
13  // default NLP/Unit-Testing/build....
14 
15  // word tag? there are more, see .dat for list of them
16  enum WordType {
17  others = 0,
18  adjective , adverb , conjunction , dative,
19  noun , interjections , imperative ,
20  particple , preposition , pronoun , plural , singular,
21  verb , transitive, intransitive, interrogative, object,
22 
23  IGNORETHIS
24  };
25 
26  static map<string, WordType> WordTypeMap = {
27  {"a." , adjective } ,
28  {"adv." , adverb } ,
29  {"conj." , conjunction } ,
30  {"n." , noun } ,
31  {"interj." , interjections } ,
32  {"imp." , imperative } ,
33  {"p." , particple } ,
34  {"prep." , preposition } ,
35  {"dat." , dative } ,
36  {"interrog." , interrogative } ,
37 
38  {"pr." , pronoun } ,
39  {"pron." , pronoun } ,
40  {"obj." , pronoun } ,
41 
42 
43  {"pl." , plural } ,
44  {"sing." , singular } ,
45  {"v." , verb } ,
46 
47  {"object." , object } ,
48  {"t." , transitive } ,
49  {"i." , intransitive } ,
50 
51  {"?" , others },
52 
54  {"&" , IGNORETHIS },
55  {"/" , IGNORETHIS }
56  };
57 
58  static map<WordType, string> WordStringMap = {
59  {others , "?." } ,
60  {adjective , "a." } ,
61  {adverb , "adv." } ,
62  {conjunction , "conj." } ,
63  {noun , "n." } ,
64  {interjections , "interj." } ,
65  {imperative , "imp." } ,
66  {particple , "p." } ,
67  {preposition , "prep." } ,
68  {plural , "pl." } ,
69  {singular , "sing." } ,
70  {pronoun , "pron." } ,
71  {verb , "v." } ,
72  {object , "object." } ,
73  {transitive , "t." } ,
74  {intransitive , "i." },
75  {dative , "dat." } ,
76  {interrogative , "interrog." } ,
77 
78  {IGNORETHIS , "IGNORE" }
79  };
80 
81 
82 
83 } /* NLP */