|
WordNet |
|
1 /* 2 * WordNet.java 3 * 4 * Copyright (c) 1998-2002, The University of Sheffield. 5 * 6 * This file is part of GATE (see http://gate.ac.uk/), and is free 7 * software, licenced under the GNU Library General Public License, 8 * Version 2, June 1991 (in the distribution as file licence.html, 9 * and also available at http://gate.ac.uk/gate/licence.html). 10 * 11 * Marin Dimitrov, 16/May/2002 12 * 13 * $Id: WordNet.java,v 1.7 2002/06/05 10:39:37 marin Exp $ 14 */ 15 16 package gate.wordnet; 17 18 import java.util.*; 19 import java.net.*; 20 21 import gate.*; 22 import gate.event.*; 23 24 25 /** Represents WordNet LKB. 26 */ 27 public interface WordNet extends LanguageResource { 28 29 public static final int POS_ADJECTIVE = 1001; 30 public static final int POS_ADVERB = 1002; 31 public static final int POS_NOUN = 1003; 32 public static final int POS_VERB = 1004; 33 34 /** returns the WordNet version */ 35 public String getVersion(); 36 37 /* public Iterator getSynsets(); */ 38 39 /** returns all synsets for specific POS */ 40 public Iterator getSynsets(int pos) 41 throws WordNetException; 42 43 /** returns all unique beginners */ 44 public Iterator getUniqueBeginners(); 45 46 /** returns list of WordSense-s for specific lemma */ 47 public List lookupWord(String lemma) throws WordNetException; 48 49 /** returns list of WordSense-s for specific lemma of the specified POS */ 50 public List lookupWord(String lemma, int pos) throws WordNetException; 51 52 public void setPropertyUrl(URL _propertiesUrl); 53 public URL getPropertyUrl(); 54 55 } 56 57
|
WordNet |
|