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