1
0
forked from GitHub/gf-core

now the robust parser is purely top-down and the meta rules compete on a fair basis with the grammar rules

This commit is contained in:
kr.angelov
2012-06-12 09:29:51 +00:00
parent d989005e01
commit b27a440ef3
6 changed files with 256 additions and 79 deletions

View File

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