Hello,
I was poking around looking for ways to generate inflected forms of a
lemma, and came across this old thread. I don't really understand
everything at the links in the conversation, and am new to this stuff,
but I would like to experiment with generating inflected forms from a
lemma.
I have put together a bunch of inflected forms labeled with POS
together with their lemmas from the Brown corpus to play around with,
and I was thinking that as a first step maybe I could do some kind of
clustering analysis that would group lemmas that have similar
inflectional patterns (Does that seem reasonable/possible?)
Unfortunately I have no idea how to actually *do* the clustering...
Was just looking at the basic documentation of nltk's cluster package
(
http://docs.huihoo.com/nltk/0.9.5/api/nltk.cluster-module.html) and
haven't been able to get the example code to run.
When I try to run:
vectors = [array(f) for f in [[3, 3], [1, 2], [4, 2], [4, 0]]]
I get:
NameError: name 'array' is not defined
Any thoughts are appreciated.
Thanks,
Shel