diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-09-18 09:18:48 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-09-18 09:18:48 +0000 |
| commit | a307ed6c75c2dbf116170f0dc1904e6725ac74f3 (patch) | |
| tree | ce17c97d202a67b140947ac50f8957333b37b0ce /src/runtime/c/pgf/data.h | |
| parent | 91ca7c9a1be37b7cc943a1252199b724d1ef5d87 (diff) | |
the C runtime now has a type prob_t which is used only for probability values
Diffstat (limited to 'src/runtime/c/pgf/data.h')
| -rw-r--r-- | src/runtime/c/pgf/data.h | 8 |
1 files changed, 5 insertions, 3 deletions
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; |
