source: app/src/kor/common_cor.cc @ 0214596

help
Last change on this file since 0214596 was ac7d970, checked in by pawelk <pawelk@…>, 16 years ago

Uaktualnilismy kora.

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@23 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

  • Property mode set to 100755
File size: 646 bytes
Line 
1#include <stdlib.h>
2#include <string.h>
3#include "common_cor.h"
4
5#define MAX_PATH_LENGTH 255
6
7char dictionary[MAX_PATH_LENGTH];
8char file_weights[MAX_PATH_LENGTH];
9float threshold;
10
11void 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.