Blame view
tools/lia_ltbox/lia_ne_v2.2/src/lia_liblex.h
1.01 KB
f34231730 add lia_ne + crf+... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
/* Managing a lexicon with IDs */ /* load a lexicon and return a lexicon ID * - input = filename (char *) * - output = lexicon ID (int) */ int load_lexicon(char *); int load_lexicon_first_field(char *); /* delete a lexicon * - input = lexicon ID (int) * - output = void */ void delete_lexicon(int); /* get a string from a code * - input = lexicon ID (int) + code (int) * - output = 0 if the code is missing * 1 if the code is here * the adress of the word string in (char **) */ int code2word(int,int,char**); /* get a code from a string * - input = lexicon ID (int) + word string (char*) * - output = 0 if the word is not in the lexicon * 1 if the word is in the lexicon * the code found in (int*) */ int word2code(int,char*,int*); void reset_value_tree(int); int inc_freq_word(int, char*); void print_scored_text_tree(int); void print_distrib_text_tree(int); void add_word_lexicon(int, char*, int); int new_lexicon(); #define False 0 #define True 1 |