mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-11 13:59:31 -06:00
change the API for literals in Java and Python. The input sentence is no longer a parameter to the callbacks.
This commit is contained in:
@@ -1280,11 +1280,11 @@ pypgf_literal_callback_match(PgfLiteralCallback* self, PgfConcr* concr,
|
||||
gu_container(self, PyPgfLiteralCallback, callback);
|
||||
|
||||
PyObject* result =
|
||||
PyObject_CallFunction(callback->pycallback, "isi",
|
||||
lin_idx, sentence, *poffset);
|
||||
PyObject_CallFunction(callback->pycallback, "ii",
|
||||
lin_idx, *poffset);
|
||||
if (result == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user