1
15
16 package gate.wordnet;
17
18 import java.net.URL;
19 import java.util.Iterator;
20 import java.util.List;
21
22 import gate.LanguageResource;
23
24
25
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
35 public String getVersion();
36
37
38
39
40 public Iterator getSynsets(int pos)
41 throws WordNetException;
42
43
44 public Iterator getUniqueBeginners();
45
46
47 public List lookupWord(String lemma) throws WordNetException;
48
49
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