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.
Asked
Active
Viewed 2,049 times
1 Answers
4
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)

alvas
- 115,346
- 109
- 446
- 738
-
It does not seem to work for the inputs quoted in the Gale-church paper:\ – Viswanadh Kumar Reddy Vuggumud Sep 25 '14 at 15:55
-
Thank you for the updated code. But it is not producing result as shown in the english-french example of the paper – Viswanadh Kumar Reddy Vuggumud Sep 28 '14 at 13:41
-
yes, i don't think it's the algorithm / implementation per se but the data you're testing on. – alvas Sep 28 '14 at 16:38
-
These are the input I am using [eng.txt](http://pastebin.com/Xk6DtZMB), [french.txt](http://pastebin.com/ZhNpEHxr) and ran the program as "python gale_church.py eng.txt french.txt" and got [output](http://pastebin.com/b7n6pPTY) while the output shown in the paper is [out](http://pastebin.com/EAv0GEVf) – Viswanadh Kumar Reddy Vuggumud Sep 28 '14 at 17:21