Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

The gale-church algorithm is available in the python-NLTK but can anyone show me an example of how to call the function within a python script? i'm clueless about how to do that.

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

like image 978
alvas Avatar asked Apr 06 '11 09:04

alvas


1 Answers

After giving up on using the Gale-Church aligner in NLTK contribution, i wrote my own =) http://code.google.com/p/gachalign/ (Feb 2013)

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

like image 63
alvas Avatar answered Oct 11 '22 09:10

alvas