Questions tagged [jwi]

The MIT Java Wordnet Interface (JWI) is a Java library for interfacing with the Wordnet electronic dictionary.

Taken from http://projects.csail.mit.edu/jwi/api/index.html

"It features API calls to retrieve index entries, synsets, morphological exceptions, and sense index entries from the Wordnet data files. It also has calls that allow browsing by following lexical and semantic pointers, and contains classes that can perform simple morphological processing. The library includes no GUI elements.

JWI is compatible with Wordnet versions 1.6 through 3.0, as well as a few other Wordnet variations. It is not compatible with Wordnet 1.5. JWI does not include the Wordnet dictionary itself: that must be downloaded separately from the Wordnet site at http://wordnet.princeton.edu."

32 questions
8
votes
4 answers

java.lang.VerifyError: Verifier rejected class. Code working fine in debug mode, but not throwing this error in release mode

Please help on this error.Below is error logcat: Caused by: java.lang.VerifyError: Verifier rejected class edu.mit.jwi.morph.SimpleStemmer: java.util.List edu.mit.jwi.morph.SimpleStemmer.getNounCollocationRoots(java.lang.String) failed to verify:…
user2978140
  • 91
  • 1
  • 4
5
votes
3 answers

Searching WordNet for Synonym gives only one result

I am using java jwi API for searching the wordnet to get the synonyms of a word. The problem is that it only gives me one result the word to find its synonyms itself. Please guide me. Is it possible to get the list of all possible synonyms of a…
Java Nerd
  • 958
  • 3
  • 19
  • 51
5
votes
2 answers

Access WordNet dict files in Android app

I'm writing a word game in Android. It's my first app so my knowledge is almost non-existent. What I would like to do is use JWI to access the WordNet dictionary. This requires specifying the WordNet dictionary's file path. From what I've read,…
sanbikinoraion
  • 752
  • 2
  • 8
  • 12
4
votes
1 answer

WordNet(JWI MIT) : How to find words with a particular alphabet/phrase?

How can I find the list of words starting with a particular alphabet or particular phrase using JWI MIT interface(http://projects.csail.mit.edu/jwi/) from WordNet API(http://wordnet.princeton.edu/). Any Idea, how to achieve this?
Master
  • 2,945
  • 5
  • 34
  • 65
4
votes
3 answers

Getting word stems with JWI and Wordnet

How do I correctly use the stemmer method implemented in MIT's JWI (Java API for WordNet) in order to get the stem of a word? I'm not sure how to initialize a stemmer and use the findStems method.
user573382
  • 343
  • 3
  • 10
  • 22
2
votes
0 answers

ADJECTIVE_SATELLITE in JWI

Sorry not technical but related to java AI from wordnet. I am looking at the wordnet, In that we have ADJECTIVE_SATELLITE ? what is ADJECTIVE_SATELLITE? how is it different from ADJECTIVE.-Adjective satellite category. 2) SynsetType[] ALL_TYPES when…
Kishore Thota
  • 87
  • 1
  • 6
2
votes
0 answers

JWI Wordnet check if word is noun

Im using MITs JWI and need to check if a given word is a noun. Currently Im trying to do it like this IWordID wId = stemmer.getDictionary().getIndexWord(words[i], POS.NOUN).getWordIDs().get(0); IWord localWord = stemmer.getDictionary().getWord(wId);…
Matthias Schroer
  • 103
  • 1
  • 1
  • 5
2
votes
0 answers

Search Open Multilingual Wordnet with JWI

Does JWI support the Open Multilingual Wordnet or (even better) the Extended Open Multilingual Wordnet? Both of those data sets look great, but they extremely clunky as is. It looks like I would have to parse and aggregate a dozen (or hundred in the…
bhan
  • 2,489
  • 3
  • 19
  • 26
2
votes
1 answer

Common Hypernym between two words using WordNet (JWI) - JAVA

Does anyone know how a good way to retrieve the first common hypernym between two words? I can access the first level (immediate parent) from a given word, but I'm stuck on how to retrieve all hypernyms ("going up") from this word until it matches…
Terry Ruas
  • 99
  • 10
2
votes
2 answers

How to override .size() method to examine List java jwi?

I am using the java wordnet interface JWI to try to generate the hypernyms of words, generalizing them from specific entities to higher-order concept/types. There part of my code where I want to make sure that a word registers with wordnet, since…
user3803974
2
votes
2 answers

get synonym of word with JWI

To find synonym of a word, I have below code. There is a one problem with below source code; since word coming from user, I donot know its POS type. Therefore, how can I find IIndexWord of a word in case of I dont know its POS type? IIndexWord…
Antony
  • 53
  • 1
  • 8
2
votes
2 answers

How to find Derivationally Related Forms of a wordnet synset through MIT JWI?

When retrieving semantic relations of a Synset through MIT Java Wordnet Interface (JWI) I simply can't get derivationally related forms. I'm using the ISynset class method getRelatedSynsets(IPointer p), but the list simply returns empty. As a…
Felipe Leão
  • 915
  • 2
  • 15
  • 27
2
votes
1 answer

WordNet(JWI MIT) : Antonyms of a word?

I am using www.wordnet.princeton.edu open source dictionary with www.projects.csail.mit.edu/jwi/api/edu/mit/jwi library? I am unable to find out antonyms of a word. People claim that this is a very good dictionary but I could not find my words in…
Master
  • 2,945
  • 5
  • 34
  • 65
2
votes
2 answers

Java - Getting array of nouns with Wordnet and JWI

I have a pretty easy question regarding WordNet and MIT JWI (Java API for accessing WordNet): I read a file into an array of strings, which I've split into words. How can I get a separate array of strings containing only the nouns using getPOS()?…
user573382
  • 343
  • 3
  • 10
  • 22
1
vote
1 answer

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…
219CID
  • 340
  • 5
  • 15
1
2 3