Package net.didion.jwnl.data

Examples of net.didion.jwnl.data.IndexWordSet


    public static Vector<String> getMeronyms(String baseWord) {
        if (baseWord == null)
            return null;
        Vector<String> result = new Vector<String>();
        IndexWordSet words;
        try {
            words = WNLookup.getDict().lookupAllIndexWords(baseWord);
            Iterator iter = words.getIndexWordCollection().iterator();
            IndexWord word;
            while (iter.hasNext()) {
                word = (IndexWord) iter.next();
                if (word != null) {
                    // result.add(getWordLabel(word));
View Full Code Here


    public static Vector<String> getHolonyms(String baseWord) {
        if (baseWord == null)
            return null;
        Vector<String> result = new Vector<String>();
        IndexWordSet words;
        try {
            words = WNLookup.getDict().lookupAllIndexWords(baseWord);
            Iterator iter = words.getIndexWordCollection().iterator();
            IndexWord word;
            while (iter.hasNext()) {
                word = (IndexWord) iter.next();
                if (word != null) {
                    // result.add(getWordLabel(word));
View Full Code Here

TOP

Related Classes of net.didion.jwnl.data.IndexWordSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.