1   /*
2    *  MutableLexKBSynset.java
3    *
4    *  Copyright (c) 1998-2005, 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   *  Kalina Bontcheva, 28/January/2003
12   *
13   *  $Id: MutableLexKBSynset.java,v 1.4 2005/01/11 13:51:36 ian Exp $
14   */
15  
16  package gate.lexicon;
17  
18  public interface MutableLexKBSynset extends LexKBSynset {
19  
20    /** sets the part-of-speech for this synset*/
21    public void setPOS(Object newPOS);
22  
23    /** textual description of the synset */
24    public void setDefinition(String newDefinition);
25  
26    /** add a new word sense at the end of the synset*/
27    public boolean addWordSense(LexKBWordSense newWordSense);
28  
29    /** add a new word sense at a given position */
30    public boolean addWordSense(LexKBWordSense newWordSense, int offset);
31  
32    /** change the offset of an existing word sense */
33    public boolean setWordSenseIndex(LexKBWordSense wordSense, int newOffset);
34  
35    public void removeSenses();
36  
37    public void removeSense(LexKBWordSense theSense);
38  }