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