summaryrefslogtreecommitdiff
path: root/src/runtime/c/utils
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2012-06-12 09:29:51 +0000
committerkr.angelov <kr.angelov@gmail.com>2012-06-12 09:29:51 +0000
commitb27a440ef32758df71639e29d81466f1afaf2c90 (patch)
tree5e5a78006cf5e25db3b01d5d9db0548f48d466d3 /src/runtime/c/utils
parentd989005e019e81599620012c80d13960ae8cb4a1 (diff)
now the robust parser is purely top-down and the meta rules compete on a fair basis with the grammar rules
Diffstat (limited to 'src/runtime/c/utils')
-rw-r--r--src/runtime/c/utils/pgf-translate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/utils/pgf-translate.c b/src/runtime/c/utils/pgf-translate.c
index aae09e70d..a740d3204 100644
--- a/src/runtime/c/utils/pgf-translate.c
+++ b/src/runtime/c/utils/pgf-translate.c
@@ -87,6 +87,12 @@ int main(int argc, char* argv[]) {
goto fail_read;
}
+ if (!pgf_load_meta_child_probs(pgf, "../../../examples/PennTreebank/test2.probs", pool)) {
+ fprintf(stderr, "Loading meta child probs failed\n");
+ status = EXIT_FAILURE;
+ goto fail_read;
+ }
+
// Look up the source and destination concrete categories
PgfConcr* from_concr =
gu_map_get(pgf->concretes, &from_lang, PgfConcr*);