|
WordSense |
|
1 /* 2 * WordSense.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: WordSense.java,v 1.4 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 word sense. 25 */ 26 public interface WordSense { 27 28 /** returns the Word of this WordSense */ 29 public Word getWord(); 30 31 /** part-of-speech for this sense (inherited from the containing synset) */ 32 public int getPOS(); 33 34 /** synset of this sense */ 35 public Synset getSynset(); 36 37 /** order of this sense relative to the word - i.e. most important senses of the same word come first */ 38 public int getSenseNumber(); 39 40 /** order of this sense relative to the synset- i.e. most important senses of the same synset come first */ 41 public int getOrderInSynset(); 42 43 /** appears in SEMCOR? */ 44 public boolean isSemcor(); 45 46 /** return the Lex relations this sense participates in */ 47 public List getLexicalRelations() throws WordNetException ; 48 49 /** return the Lex relations (of the specified type) this sense participates in */ 50 public List getLexicalRelations(int type) throws WordNetException ; 51 52 } 53 54
|
WordSense |
|