help
Rev | Line | |
---|
[ac7d970] | 1 | #include <stdlib.h> |
---|
| 2 | #include <string.h> |
---|
| 3 | #include "common_cor.h" |
---|
| 4 | |
---|
| 5 | #define MAX_PATH_LENGTH 255 |
---|
| 6 | |
---|
| 7 | char dictionary[MAX_PATH_LENGTH]; |
---|
| 8 | char file_weights[MAX_PATH_LENGTH]; |
---|
| 9 | float threshold; |
---|
| 10 | |
---|
| 11 | void process_cor_options(gengetopt_args_info* args) |
---|
| 12 | { |
---|
| 13 | if(args->dictionary_given) |
---|
| 14 | { |
---|
| 15 | expand_path(args->dictionary_arg,dictionary); |
---|
| 16 | } |
---|
| 17 | else if (args->dictionary_home_given && args->language_given) |
---|
| 18 | { |
---|
| 19 | char buf[MAX_PATH_LENGTH]; |
---|
| 20 | expand_path(args->dictionary_home_arg, buf); |
---|
| 21 | sprintf(dictionary,"%s/%s/cor.bin",buf,args->language_arg); |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | expand_path(args->weights_arg, file_weights); |
---|
| 25 | |
---|
| 26 | threshold = args->threshold_arg; |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.