jwi

Get antonyms for a word in java - Wordnet JWI

↘锁芯ラ 提交于 2021-01-29 02:34:53
问题 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

WordNet(JWI MIT) : How to find High Frequency words list?

左心房为你撑大大i 提交于 2020-01-03 04:55:06
问题 Using JWI MIT interface libraries http://projects.csail.mit.edu/jwi/ , how can I find the list of most frequently used English words in daily life from WordNet api (http://wordnet.princeton.edu/)? Is there any way I can accomplish this if API initially does not provide this? Because initially API does not filter words on a level. 回答1: WordNet comes with usage word counts, but the man page describes them as unreliable and not updated since 2001: http://wordnet.princeton.edu/wordnet/man/cntlist

Regarding the assets folder and environment variables on android

蓝咒 提交于 2019-12-25 02:08:53
问题 My code reads package com.fyp.jwi; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import edu.mit.jwi.Dictionary; import edu.mit.jwi.IDictionary; import edu.mit.jwi.item.IIndexWord; import edu.mit.jwi.item.IWord; import edu.mit.jwi.item.IWordID; import edu.mit.jwi.item.POS; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MainActivity extends Activity {

Access WordNet dict files in Android app

折月煮酒 提交于 2019-12-23 10:07:30
问题 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, Android "assets" are not available via a simple file path, but what JWI requires to initialize the WordNet dictionary API is a URL to the disk location of the dictionary files. So, what is the best course of action? Should I copy the assets at startup

Getting word stems with JWI and Wordnet

会有一股神秘感。 提交于 2019-12-09 18:38:36
问题 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. 回答1: You don't need an additional library, but you do need a dictionary. You can download one from Princeton: https://wordnet.princeton.edu/wordnet/download/current-version/ I recommend downloading only the dictionary from the section "WordNet 3.1 DATABASE FILES ONLY" Extract the archive. Supposing

Getting word stems with JWI and Wordnet

大城市里の小女人 提交于 2019-12-04 11:32:11
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. You don't need an additional library, but you do need a dictionary. You can download one from Princeton: https://wordnet.princeton.edu/wordnet/download/current-version/ I recommend downloading only the dictionary from the section "WordNet 3.1 DATABASE FILES ONLY" Extract the archive. Supposing that PATH/dict is the location of the output you can use this code: Dictionary dict = new Dictionary(new