[Bluej-discuss] POS object type
Stephen Bloch
sbloch at adelphi.edu
Thu Dec 6 18:36:21 GMT 2007
Jayna Raghwani <jna_raghwani at hotmail.com> writes:
>Below is a method to getHyponyms for a chosen word, but I don't know
>what I need to put in the POS parameter, can anyone help? I tried
>searching on the net, but the results were unsuccessful. Sorry the
>method is rather long...
The code you provided assumes there is a class or enum named POS (for
PartOfSpeech). There is no "standard" Java class by that name
(AFAIK, although there are thousands of standard classes, so I might
have missed it :-)), so I would try to find it wherever you got that
code.
Or you could just make something up, like
enum POS { NOUN, VERB, ADJECTIVE, ADVERB, ARTICLE, PREPOSITION, PRONOUN }
--
Stephen Bloch
sbloch at adelphi.edu
More information about the bluej-discuss
mailing list