Get antonyms for a word in java - Wordnet JWI
问题 I am interested in finding antonyms for a word using wordnet in Java. I am currently using this method to find antonyms but I have yet to find any words which have antonyms. Are antonyms not common in Wordnet? Or is this implementation flawed? public List<String> getAntonyms(String baseWord) { List<String> synonymList = new ArrayList<>(); IIndexWord[] baseWordPOS = getAllPOSForBaseWord(baseWord); for (IIndexWord iIndexWord : baseWordPOS) { if (iIndexWord == null) { continue; } for (IWordID