How to use the Gale-Church algorithm in Python-NLTK?

The gale-church algorithm is available in python-NLTK, but can anyone show me an example of how to call a function in a python script? I do not know how to do that.

http://code.google.com/p/nltk/source/browse/trunk/nltk_contrib/nltk_contrib/align/align.py?r=8552&spec=svn8552

+4
source share
1 answer

After refusing to use the Gale-Church equalizer in the NLTK contribution, I wrote my own =) http://code.google.com/p/gachalign/ (February 2013)

Please use this updated version of the Gale-Church equalizer: https://github.com/alvations/NTU-MC/blob/master/ntumc/toolkit/gale_church.py (September 2014)

+2
source

Source: https://habr.com/ru/post/1346887/


All Articles