summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/data.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2012-10-25 14:42:53 +0000
committerkr.angelov <kr.angelov@gmail.com>2012-10-25 14:42:53 +0000
commitd18593895294b3d2203f7e6fab253f1b5835ff85 (patch)
tree8c82ebafdc0a72ec75edc532c4b69cb101811390 /src/runtime/c/pgf/data.h
parent619c341ee9971bb6f8c263df2e8e84b4e06923ec (diff)
a major refactoring in the robust parser: bottom-up filtering and garbage collection for the chart
Diffstat (limited to 'src/runtime/c/pgf/data.h')
-rw-r--r--src/runtime/c/pgf/data.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/runtime/c/pgf/data.h b/src/runtime/c/pgf/data.h
index a8b4d8f53..82c363923 100644
--- a/src/runtime/c/pgf/data.h
+++ b/src/runtime/c/pgf/data.h
@@ -193,6 +193,8 @@ struct PgfAlternative {
* form. */
};
+typedef struct PgfItemConts PgfItemConts;
+
struct PgfCCat {
PgfCncCat* cnccat;
PgfFunIds* lindefs;
@@ -200,6 +202,7 @@ struct PgfCCat {
PgfProductionSeq prods;
float viterbi_prob;
int fid;
+ PgfItemConts* conts;
};
extern PgfCCat pgf_ccat_string, pgf_ccat_int, pgf_ccat_float, pgf_ccat_var;
@@ -213,11 +216,14 @@ extern GU_DECLARE_TYPE(PgfFunIndices, GuStringMap);
typedef GuMap PgfCoerceIdx;
extern GU_DECLARE_TYPE(PgfCoerceIdx, GuMap);
-typedef GuStringMap PgfTransitions;
-extern GU_DECLARE_TYPE(PgfTransitions, GuStringMap);
+typedef GuMap PgfProductionIdx;
+extern GU_DECLARE_TYPE(PgfProductionIdx, GuMap);
+
+typedef GuMap PgfLeftcornerCatIdx;
+extern GU_DECLARE_TYPE(PgfLeftcornerCatIdx, GuMap);
-typedef GuMap PgfEpsilonIdx;
-extern GU_DECLARE_TYPE(PgfEpsilonIdx, GuMap);
+typedef GuMap PgfLeftcornerTokIdx;
+extern GU_DECLARE_TYPE(PgfLeftcornerTokIdx, GuMap);
typedef struct PgfLiteralCallback PgfLiteralCallback;
extern GU_DECLARE_TYPE(PgfLiteralCallback, struct);
@@ -238,15 +244,14 @@ struct PgfConcr {
GuMap* ccats;
PgfFunIndices* fun_indices;
PgfCoerceIdx* coerce_idx;
- PgfTransitions* lexicon_idx;
- PgfEpsilonIdx* epsilon_idx;
+ PgfProductionIdx* epsilon_idx;
+ PgfLeftcornerCatIdx* leftcorner_cat_idx;
+ PgfLeftcornerTokIdx* leftcorner_tok_idx;
PgfCncFuns* cncfuns;
PgfSequences* sequences;
PgfCIdMap* cnccats;
PgfCallbacksMap* callbacks;
int total_cats;
- int max_fid;
- int item_quota;
};
extern GU_DECLARE_TYPE(PgfConcr, struct);