1
0
forked from GitHub/gf-core

Changed 'lin' method name to 'linearize' (py-bindings).

This commit is contained in:
jordi.saludes
2011-12-08 13:08:36 +00:00
parent 093ba41fa3
commit bff947f44f
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ Notice that parsing returns a list of gf trees.
Let's save it and linearize it in Spanish:
>>> t = pgf.parse(eng, "is 42 prime")
>>> pgf.lin(spa, t[0])
>>> pgf.linearize(spa, t[0])
'42 es primo'
(which is not, but there is a '?' lacking at the end, remember?)

View File

@@ -175,7 +175,7 @@ completions(PGF *self, PyObject *args, PyObject *kws)
static PyMethodDef pgf_methods[] = {
{"parse", (PyCFunction)parse, METH_VARARGS|METH_KEYWORDS, "Parse a string."},
{"lin", (PyCFunction)linearize, METH_VARARGS,"Linearize tree."},
{"linearize", (PyCFunction)linearize, METH_VARARGS,"Linearize tree."},
{"lang_code", (PyCFunction)languageCode, METH_VARARGS,"Get the language code."},
{"print_name", (PyCFunction)printName, METH_VARARGS,"Get the print name for a id."},
{"fun_type", (PyCFunction)functiontype, METH_VARARGS,"Get the type of a fun expression."},