mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
lookup_morpho, lookup_cohorts and fullform_lexicon now report the usual conditional probability. This turns out to be more useful for part of speech tagging
This commit is contained in:
@@ -114,9 +114,8 @@ pgf_morpho_iter(PgfProductionIdx* idx,
|
|||||||
|
|
||||||
PgfCId lemma = entry->papp->fun->absfun->name;
|
PgfCId lemma = entry->papp->fun->absfun->name;
|
||||||
GuString analysis = entry->ccat->cnccat->labels[entry->lin_idx];
|
GuString analysis = entry->ccat->cnccat->labels[entry->lin_idx];
|
||||||
|
|
||||||
prob_t prob = entry->ccat->cnccat->abscat->prob +
|
prob_t prob = entry->papp->fun->absfun->ep.prob;
|
||||||
entry->papp->fun->absfun->ep.prob;
|
|
||||||
callback->callback(callback,
|
callback->callback(callback,
|
||||||
lemma, analysis, prob, err);
|
lemma, analysis, prob, err);
|
||||||
if (!gu_ok(err))
|
if (!gu_ok(err))
|
||||||
|
|||||||
Reference in New Issue
Block a user