From a6800fc0da1d90dad0362c806037f9a92ab3e813 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 8 May 2012 12:13:28 +0000 Subject: a new unbiased statistical parser. it is still far from perfect use it on your own risk. --- src/runtime/c/pgf/data.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 8063c4ff3..cdbbf8d6b 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -125,7 +125,7 @@ struct PgfPGF { extern GU_DECLARE_TYPE(PgfPGF, struct); typedef struct { - double prob; + float prob; PgfExpr expr; } PgfExprProb; @@ -148,6 +148,9 @@ struct PgfCatFun { struct PgfCat { // TODO: Add cid here PgfHypos context; + + float meta_prob; + GuLength n_functions; PgfCatFun functions[]; // XXX: resolve to PgfFunDecl*? }; @@ -189,6 +192,7 @@ struct PgfCCat { PgfFunIds* lindefs; size_t n_synprods; PgfProductionSeq prods; + float viterbi_prob; int fid; }; -- cgit v1.2.3