From e9eeefa6f05babcf9b9e2ca471797368672f806c Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 19 Aug 2013 12:16:30 +0000 Subject: fullFormLexicon in C and Python --- src/runtime/c/pgf/pgf.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (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 40ae1ca45..51998c7b8 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -126,7 +126,7 @@ pgf_parse(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, typedef struct PgfMorphoCallback PgfMorphoCallback; struct PgfMorphoCallback { - void (*callback)(PgfMorphoCallback* self, PgfTokens tokens, + void (*callback)(PgfMorphoCallback* self, PgfCId lemma, GuString analysis, prob_t prob, GuExn* err); }; @@ -135,6 +135,18 @@ void pgf_lookup_morpho(PgfConcr *concr, PgfLexer *lexer, PgfMorphoCallback* callback, GuExn* err); +typedef GuMapKeyValue PgfFullFormEntry; + +GuEnum* +pgf_fullform_lexicon(PgfConcr *concr, GuPool* pool); + +GuString +pgf_fullform_get_string(PgfFullFormEntry* entry); + +void +pgf_fullform_get_analyses(PgfFullFormEntry* entry, + PgfMorphoCallback* callback, GuExn* err); + PgfExprEnum* pgf_parse_with_heuristics(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, double heuristics, -- cgit v1.2.3