NLGLexWordSense.java |
1 /* 2 * NLGWordSense.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: NLGLexWordSense.java,v 1.4 2005/01/11 13:51:36 ian Exp $ 14 */ 15 16 17 package gate.lexicon; 18 19 import java.util.HashMap; 20 21 public interface NLGLexWordSense extends MutableLexKBWordSense { 22 23 /** Sets the extra syntactic info, which is a hash map 24 with keys strings (e.g., synt-category) and values 25 any object that is serialisable */ 26 public void setExtraInfo(HashMap newInfo); 27 28 /** Add extra info for the given key and value */ 29 public void addExtraInfo(String key, Object value); 30 31 /** Returns the extra info associated with a key */ 32 public Object getExtraInfo(String key); 33 34 /** Returns all extra info for this entry */ 35 public HashMap getExtraInfo(); 36 }