From a307ed6c75c2dbf116170f0dc1904e6725ac74f3 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 18 Sep 2012 09:18:48 +0000 Subject: the C runtime now has a type prob_t which is used only for probability values --- src/runtime/c/pgf/data.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (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 552613c55..a8b4d8f53 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -123,8 +123,10 @@ struct PgfPGF { extern GU_DECLARE_TYPE(PgfPGF, struct); +typedef float prob_t; + typedef struct { - float prob; + prob_t prob; PgfExpr expr; } PgfExprProb; @@ -151,8 +153,8 @@ struct PgfCat { PgfCId name; PgfHypos context; - float meta_prob; - float meta_token_prob; + prob_t meta_prob; + prob_t meta_token_prob; PgfMetaChildMap* meta_child_probs; GuLength n_functions; -- cgit v1.2.3