From b27a440ef32758df71639e29d81466f1afaf2c90 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 12 Jun 2012 09:29:51 +0000 Subject: now the robust parser is purely top-down and the meta rules compete on a fair basis with the grammar rules --- src/runtime/c/pgf/data.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/runtime/c/pgf/data.h') diff --git a/src/runtime/c/pgf/data.h b/src/runtime/c/pgf/data.h index 63c26d318..7fe2fc7d3 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -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*? -- cgit v1.2.3