[expansion] expansion rule structs and Python script to generate rules from dictionaries tree. Note that a canonical_index of -1 indicates that a given phrase is the canonical (saves space)

This commit is contained in:
Al
2015-07-16 02:17:42 -04:00
parent 3d1d4d3673
commit f181c04e7a
3 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#include <stdlib.h>
#include "constants.h"
typedef struct address_expansion_rule {
char *phrase;
uint64_t dictionary;
int32_t canonical_index;
} address_expansion_rule_t;
typedef struct address_language_index {
char language[MAX_LANGUAGE_LEN];
uint32_t index;
size_t len;
} address_language_index_t;