01 /*
02 * Synset.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: Synset.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15 */
16
17 package gate.wordnet;
18
19 import java.util.List;
20
21
22 /** Represents WordNet synset.
23 */
24 public interface Synset {
25
26 /** returns the part-of-speech for this synset, see WordNet::POS_XXX constants */
27 public int getPOS();
28
29 /** is this synset a UB - i.e. has no hypernym */
30 public boolean isUniqueBeginner() throws WordNetException;
31
32 /** textual description of the synset */
33 public String getGloss();
34
35 /** offset in index files */
36 public long getOffset();
37
38 /** WordSenses contained in this synset */
39 public List getWordSenses();
40
41 /** get specific WordSense according to its order in the synset - most important senses come first */
42 public WordSense getWordSense(int offset);
43
44 /** get the SemanticRelation-s of this synset */
45 public List getSemanticRelations() throws WordNetException;
46
47 /** get the SemanticRelation-s of specific type (HYPERNYm) for this synset */
48 public List getSemanticRelations(int type) throws WordNetException;
49
50 }
|