1/ Edit file_spec.h to
struct tm *local;
time_t t;
char *user;
char time_stmp[19];
char *file_spec = 0;
t = time(NULL);
local = localtime(&t);
sprintf(time_stmp, "%04d-%02d-%02d.%02d%02d%02d.", 1900 + local->tm_year,
(local->tm_mon + 1), local->tm_mday, local->tm_hour,
local->tm_min, local->tm_sec);
user = getenv("USER");
file_spec = (char *)malloc(sizeof(char) *
(strlen(time_stmp) + strlen(user) + 1));
file_spec[0] = '\0';
strcat(file_spec, time_stmp) ;
strcat(file_spec, user);
return file_spec;
2/
struct tm *local;
time_t t;
char *user;
char time_stmp[19];
char *file_spec = 0;
t = time(NULL);
local = localtime(&t);
sprintf(time_stmp, "%04d-%02d-%02d.%02d%02d%02d.", 1900 + local->tm_year,
(local->tm_mon + 1), local->tm_mday, local->tm_hour,
local->tm_min, local->tm_sec);
user = getenv("USER");
file_spec = (char *)malloc(sizeof(char) *
(strlen(time_stmp) + strlen(user) + 1));
file_spec[0] = '\0';
strcat(file_spec, time_stmp) ;
strcat(file_spec, user);
return file_spec;
2/
$ cp Makefile Makefile.orig $ sed -i 's/ -DBINARY_SEARCH_FOR_TTABLE//;s/mkdir/mkdir -p/g' Makefile $ make
3/ Run the scripts:
plain2snt.out sv-text.txt da-text.txt
GIZA++ -S sv-text.vcb -T da-text.vcb -C sv-text_da-text.snt