mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 03:15:26 -07:00
pgf_category_prob should return INFINITY for non-existant categories
This commit is contained in:
1 parent
455fd07e12
commit
38de1bf924
1 file changed
+1
-1
@@ -361,7 +361,7 @@ prob_t pgf_category_prob(PgfDB *db, PgfRevision revision,
|
|||||||
ref<PgfAbsCat> abscat =
|
ref<PgfAbsCat> abscat =
|
||||||
namespace_lookup(pgf->abstract.cats, catname);
|
namespace_lookup(pgf->abstract.cats, catname);
|
||||||
if (abscat == 0) {
|
if (abscat == 0) {
|
||||||
return 0;
|
return INFINITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
return abscat->prob;
|
return abscat->prob;
|
||||||
|
|||||||
Reference in new issue
Block a user