| WordSense.java |
1 /*
2 * WordSense.java
3 *
4 * Copyright (c) 1998-2004, 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.6 2004/07/21 17:10:10 akshay Exp $
14 */
15
16 package gate.wordnet;
17
18 import java.util.List;
19
20
21 /** Represents WordNet word sense.
22 */
23 public interface WordSense {
24
25 /** returns the Word of this WordSense */
26 public Word getWord();
27
28 /** part-of-speech for this sense (inherited from the containing synset) */
29 public int getPOS();
30
31 /** synset of this sense */
32 public Synset getSynset();
33
34 /** order of this sense relative to the word - i.e. most important senses of the same word come first */
35 public int getSenseNumber();
36
37 /** order of this sense relative to the synset- i.e. most important senses of the same synset come first */
38 public int getOrderInSynset();
39
40 /** appears in SEMCOR? */
41 public boolean isSemcor();
42
43 /** return the Lex relations this sense participates in */
44 public List getLexicalRelations() throws WordNetException ;
45
46 /** return the Lex relations (of the specified type) this sense participates in */
47 public List getLexicalRelations(int type) throws WordNetException ;
48
49 }
50
51