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:
kr.angelov
2012-06-12 09:29:51 +00:00
parent ebfd7ac5cd
commit b765b0c054
6 changed files with 256 additions and 79 deletions

View File

@@ -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*?