[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:
15
src/address_expansion_rule.h
Normal file
15
src/address_expansion_rule.h
Normal 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;
|
||||
Reference in New Issue
Block a user