mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-27 13:32:51 -06:00
a new unbiased statistical parser. it is still far from perfect use it on your own risk.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user