So does someone know what this ratio is (I have read a part of the library code
but that's too difficult for me).
static PyObject*ratio_py(PyObject *self, PyObject *args){size_t lensum;long int ldist;if ((ldist = levenshtein_common(args, "ratio", 1, &lensum)) < 0)return NULL;if (lensum == 0)return PyFloat_FromDouble(1.0);return PyFloat_FromDouble((double)(lensum - ldist)/(lensum));}
--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To post to this group, send email to nltk-...@googlegroups.com.
To unsubscribe from this group, send email to nltk-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nltk-users?hl=en.
-- _____________________________________________ Alexis Dimitriadis A.Dimi...@uu.nl +31-30-253-6568 Utrecht Institute of Linguistics OTS Trans 10 3512 JK Utrecht The Netherlands
Note that the latest issue of the computational linguistics journal,
published yesterday, has an article on Levenshtein distance as used to
measure language similarity:
http://www.aclweb.org/anthology/J/J11/#4000
-Steven Bird
BTW, is it the good method I use to compare similarity?