1
0
forked from GitHub/gf-core

the calculation of lexical_prob in the statistical parser doesn't work properly. It should be fixed but for now I just disabled the optimization

This commit is contained in:
kr.angelov
2013-03-20 12:28:52 +00:00
parent fec34e7622
commit 650e1cfa43

View File

@@ -1492,9 +1492,9 @@ pgf_parsing_proceed(PgfParseState* state) {
prob_t state_delta =
(st->viterbi_prob-(st->next ? st->next->viterbi_prob : 0))*
state->ps->beam_size;
prob_t lexical_prob =
st->ts ? st->ts->lexical_prob : 0;
delta_prob += fmax(state_delta, lexical_prob);
//prob_t lexical_prob =
// st->ts ? st->ts->lexical_prob : 0;
delta_prob += state_delta; /*fmax(state_delta, lexical_prob)*/; // the calculation of lexical_prob doesn't work properly.
st = st->next;
}