mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-28 22:12:51 -06:00
now the robust parser is purely top-down and the meta rules compete on a fair basis with the grammar rules
This commit is contained in:
@@ -145,11 +145,16 @@ struct PgfCatFun {
|
||||
PgfCId fun;
|
||||
};
|
||||
|
||||
typedef GuMap PgfMetaChildMap;
|
||||
extern GU_DECLARE_TYPE(PgfMetaChildMap, GuMap);
|
||||
|
||||
struct PgfCat {
|
||||
// TODO: Add cid here
|
||||
PgfHypos context;
|
||||
|
||||
float meta_prob;
|
||||
float meta_token_prob;
|
||||
PgfMetaChildMap* meta_child_probs;
|
||||
|
||||
GuLength n_functions;
|
||||
PgfCatFun functions[]; // XXX: resolve to PgfFunDecl*?
|
||||
|
||||
Reference in New Issue
Block a user