the C runtime now has a type prob_t which is used only for probability values

This commit is contained in:
kr.angelov
2012-09-18 09:18:48 +00:00
parent 91ca7c9a1b
commit a307ed6c75
5 changed files with 35 additions and 31 deletions

View File

@@ -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;