mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
fix the id for fidStart in the C runtime
This commit is contained in:
@@ -985,7 +985,7 @@ pgf_parsing_complete(PgfParsing* ps, PgfItem* item, PgfExprProb *ep)
|
|||||||
gu_pool_free(tmp_pool);
|
gu_pool_free(tmp_pool);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (item->conts->ccat->fid == -4) {
|
if (item->conts->ccat->fid == -5) {
|
||||||
if (ps->before->end_offset == strlen(ps->sentence)) {
|
if (ps->before->end_offset == strlen(ps->sentence)) {
|
||||||
PgfPArg* parg = gu_seq_index(item->args, PgfPArg, 0);
|
PgfPArg* parg = gu_seq_index(item->args, PgfPArg, 0);
|
||||||
pgf_result_predict(ps, NULL, parg->ccat);
|
pgf_result_predict(ps, NULL, parg->ccat);
|
||||||
@@ -1929,7 +1929,7 @@ pgf_parsing_init(PgfConcr* concr, PgfCId cat,
|
|||||||
start_ccat->lindefs = NULL;
|
start_ccat->lindefs = NULL;
|
||||||
start_ccat->linrefs = NULL;
|
start_ccat->linrefs = NULL;
|
||||||
start_ccat->viterbi_prob = 0;
|
start_ccat->viterbi_prob = 0;
|
||||||
start_ccat->fid = -4;
|
start_ccat->fid = -5;
|
||||||
start_ccat->conts = NULL;
|
start_ccat->conts = NULL;
|
||||||
start_ccat->answers = NULL;
|
start_ccat->answers = NULL;
|
||||||
start_ccat->prods = NULL;
|
start_ccat->prods = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user