Re: [nltk-users] how to use Gale-church in python?

249 views
Skip to first unread message
Message has been deleted

Alex Rudnick

unread,
Apr 10, 2011, 11:08:32 PM4/10/11
to nltk-...@googlegroups.com
Hey liling,

Code in nltk_contrib has usually gotten less love and attention than
stuff in the main nltk, so maybe nobody knows how to use this.

But I'll probably need to get some automatic alignments in the near
future, so if I end up making use of this code, I'll improve the
documentation on it (and write back on this thread).

If you figure out how to use it, let us know! You could maybe ask the author?

On Wed, Apr 6, 2011 at 10:30 PM, 2er0 <alva...@gmail.com> wrote:
> The gale-church algorithm for sentence-level alignment is available on
> python, but can someone give a tutorial or explain how can i call the
> function in my own python scrip?
>
> http://code.google.com/p/nltk/source/browse/trunk/nltk_contrib/nltk_contrib/align/align.py?r=8552&spec=svn8552
>
> I've raised the question on stackoverflow but there's no response too
>
> Thank you,
> liling
>
>
> --
> 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.
>
>

--
-- alexr

liling tan

unread,
Apr 10, 2011, 11:39:34 PM4/10/11
to nltk-...@googlegroups.com
Hi Alex,
 
yep, the align.py is a little buggy and i got it to run, just that it's not doing what i need,
align.py works for the demo but it's still code in progress.
i guess, i will need to recode some bits and cut and paste the mathematical part into
my script if i really need to use it.
 
Janislaw figured how to use it
 
i was trying gale-church because of cross-lingual (asian and european languages) data,
the hunalign wasn't working. it's giving "file too different in size" errors.
 
any thoughts on a "sentential" N-gram? comparing sentence by length (gale-church) and then
a N-gram comparison across N-1 and N+1 sentences? Not sure, how i can do this systematically.
 
liling

Reply all
Reply to author
Forward
0 new messages