Concordia
config.hpp
1 #define CONCORDIA_VERSION_MAJOR 1
2 #define CONCORDIA_VERSION_MINOR 0
3 
4 #define TEST_RESOURCES_DIRECTORY "/home/rafalj/projects/concordia/concordia/tests/resources"
5 
6 #define PROD_RESOURCES_DIRECTORY "/home/rafalj/projects/concordia/concordia/prod/resources"
7 
8 #define LEMMA_CATEGORY_SEPARATOR '+'
9 
10 #define HAVE_RE2 0
11 #define HAVE_PCRE 1
12 
13 #define LEXICON_TEXT_FIELD_SEPARATORS "\t "
14 #define LEXICON_FIELD_SEPARATOR "\t"
15 
16 typedef unsigned int INDEX_CHARACTER_TYPE;
17 #define INDEX_CHARACTER_TYPE_MAX_VALUE UINT_MAX
18 typedef unsigned long SUFFIX_MARKER_TYPE;
19 #define SUFFIX_MARKER_TYPE_MAX_VALUE ULONG_MAX
20 
21 
22 #define SUFFIX_MARKER_SENTENCE_BYTES 2
23 //Max sentence size is determined by the SUFFIX_MARKER_SENTENCE_BYTES property.
24 //The sentence marker is build as follows: its first bytes store the
25 // sentence id. Next, SUFFIX_MARKER_SENTENCE_BYTES store the suffix offset
26 // and the last SUFFIX_MARKER_SENTENCE_BYTES store the sentence length.
27 
28 #define CONCORDIA_SEARCH_MAX_RESULTS 5
29 
30 #define WORD_MAP_FILE_NAME "word_map.bin"
31 #define MARKERS_FILE_NAME "markers.bin"
32 #define HASHED_INDEX_FILE_NAME "hashed_index.bin"