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