diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-03-20 12:28:52 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-03-20 12:28:52 +0000 |
| commit | c6e4db8f4ae94608459d3963acdb8dd9479c89f7 (patch) | |
| tree | 37dcc19cc2bb0e5e9fbd19f912f534673759bc32 /src/runtime/c/pgf/parser.c | |
| parent | 2aacbb0c469cebcdc244c278391f3e74e67cf8d7 (diff) | |
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
Diffstat (limited to 'src/runtime/c/pgf/parser.c')
| -rw-r--r-- | src/runtime/c/pgf/parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c index 304b06ed5..418b58e72 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -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; } |
