diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-06-12 09:29:51 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-06-12 09:29:51 +0000 |
| commit | b27a440ef32758df71639e29d81466f1afaf2c90 (patch) | |
| tree | 5e5a78006cf5e25db3b01d5d9db0548f48d466d3 /src/runtime/c/pgf/data.h | |
| parent | d989005e019e81599620012c80d13960ae8cb4a1 (diff) | |
now the robust parser is purely top-down and the meta rules compete on a fair basis with the grammar rules
Diffstat (limited to 'src/runtime/c/pgf/data.h')
| -rw-r--r-- | src/runtime/c/pgf/data.h | 5 |
1 files changed, 5 insertions, 0 deletions
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*? |
