mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
the viterbi probability for the epsilon categories is now updated properly
This commit is contained in:
@@ -1798,6 +1798,9 @@ pgf_parser_bu_item(PgfConcr* concr, PgfItem* item,
|
|||||||
gu_buf_push(prodbuf, PgfProduction, prod);
|
gu_buf_push(prodbuf, PgfProduction, prod);
|
||||||
eps_ccat->n_synprods++;
|
eps_ccat->n_synprods++;
|
||||||
|
|
||||||
|
if (eps_ccat->viterbi_prob > item->inside_prob)
|
||||||
|
eps_ccat->viterbi_prob = item->inside_prob;
|
||||||
|
|
||||||
if (tmp_ccat == NULL) {
|
if (tmp_ccat == NULL) {
|
||||||
size_t n_items = gu_buf_length(item->base->conts);
|
size_t n_items = gu_buf_length(item->base->conts);
|
||||||
for (size_t i = 0; i < n_items; i++) {
|
for (size_t i = 0; i < n_items; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user