Skip to content
Snippets Groups Projects
Commit 9e78bd47 authored by Franck Dary's avatar Franck Dary
Browse files

scf2fann now correctly builds tape_alphabets

parent f3994d3f
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,8 @@ void scf2fann(context *ctx)
printf("%d\t", classif_nb);
}
else if(col_nb == 1){
printf("%d\t", val);
printf("%d", val);
feat_vec_empty(classif->fv);
}
else{
dico *vocab = classif->d_features;
......@@ -130,13 +131,15 @@ void scf2fann(context *ctx)
sscanf(feat_str, "%[^==]==%d", feature_type, &feature_valindex);
printf("%d\t", feature_valindex);
feat_vec_add(classif->fv, feature_valindex);
}
col_nb++;
token = strtok(NULL, "\t");
}
printf("\n");
feat_vec_print(stdout, classif->fv);
feat_vec_add_values_to_dicos(classif->fv, classif->fm, classif->d_tapes, m);
count++;
}
......@@ -166,6 +169,9 @@ int main(int argc, char *argv[])
}
scf2fann(ctx);
tm_save_d_tapes(machine);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment