1
0
forked from GitHub/gf-core

implemented lookupMorpho for C and Python

This commit is contained in:
kr.angelov
2013-08-16 15:02:24 +00:00
parent 662a35bbb3
commit 87e34b11dc
3 changed files with 198 additions and 0 deletions

View File

@@ -124,6 +124,17 @@ PgfExprEnum*
pgf_parse(PgfConcr* concr, PgfCId cat, PgfLexer *lexer,
GuPool* pool, GuPool* out_pool);
typedef struct PgfMorphoCallback PgfMorphoCallback;
struct PgfMorphoCallback {
void (*callback)(PgfMorphoCallback* self, PgfTokens tokens,
PgfCId lemma, GuString analysis, prob_t prob,
GuExn* err);
};
void
pgf_lookup_morpho(PgfConcr *concr, PgfLexer *lexer,
PgfMorphoCallback* callback, GuExn* err);
PgfExprEnum*
pgf_parse_with_heuristics(PgfConcr* concr, PgfCId cat, PgfLexer *lexer,
double heuristics,