From 542dcaa0ec7fe63f1fce0a4507c2174ec28b48d6 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 19 Apr 2013 10:57:46 +0000 Subject: the C runtime and the Python binding now have an API for parser evaluation. The API computes PARSEVAL and Exact Match for a given tree. As a side effect the abstract trees in Python are now compared for equality by value and not by reference --- src/runtime/c/pgf/pgf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/runtime/c/pgf/pgf.h') diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index ef68e651f..03f1d4d48 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -116,6 +116,10 @@ pgf_linearize(PgfConcr* concr, PgfExpr expr, GuWriter* wtr, GuExn* err); PgfExprEnum* pgf_parse(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, GuPool* pool); +bool +pgf_parseval(PgfConcr* concr, PgfExpr expr, PgfCId cat, + double *precision, double *recall, double *exact); + PgfExprEnum* pgf_generate(PgfPGF* pgf, PgfCId cat, GuPool* pool); -- cgit v1.2.3