1
0
forked from GitHub/gf-core

API for word alignment in the C runtime and in the Haskell binding

This commit is contained in:
kr.angelov
2014-12-29 10:59:20 +00:00
parent 8fd24c3839
commit 3bd40dbab6
8 changed files with 269 additions and 2 deletions

View File

@@ -75,6 +75,16 @@ pgf_has_linearization(PgfConcr* concr, PgfCId id);
void
pgf_linearize(PgfConcr* concr, PgfExpr expr, GuOut* out, GuExn* err);
typedef struct {
GuString phrase;
size_t n_fids;
int fids[];
} PgfAlignmentPhrase;
GuSeq*
pgf_align_words(PgfConcr* concr, PgfExpr expr,
GuExn* err, GuPool* pool);
bool
pgf_parseval(PgfConcr* concr, PgfExpr expr, PgfCId cat,
double *precision, double *recall, double *exact);