Skip to content

Commit

Permalink
Fix copy-pasta error in UPARSE
Browse files Browse the repository at this point in the history
  • Loading branch information
apmasell committed Nov 7, 2014
1 parent fa7070f commit 24f1758
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions algo_uparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static PandaAlgorithm from_string(
char *end;

if (argument == NULL)
return panda_algorithm_simple_bayes_new();
return panda_algorithm_uparse_new();
errno = 0;
err_estimation = strtod(argument, &end);
if (errno == ERANGE || *end != '\0') {
Expand All @@ -92,8 +92,8 @@ static PandaAlgorithm from_string(
fprintf(stderr, "Error estimation %f is not a probability.\n", err_estimation);
return NULL;
}
algo = panda_algorithm_simple_bayes_new();
panda_algorithm_simple_bayes_set_error_estimation(algo, err_estimation);
algo = panda_algorithm_uparse_new();
panda_algorithm_uparse_set_error_estimation(algo, err_estimation);
return algo;
}

Expand All @@ -110,7 +110,7 @@ const struct panda_algorithm_class panda_algorithm_uparse_class = {
PandaAlgorithm panda_algorithm_uparse_new(
void) {
PandaAlgorithm algo = panda_algorithm_new(&panda_algorithm_uparse_class);
panda_algorithm_simple_bayes_set_error_estimation(algo, 0.36);
panda_algorithm_uparse_set_error_estimation(algo, 0.36);
return algo;
}

Expand Down

0 comments on commit 24f1758

Please sign in to comment.