LexicalKnowledgeBase.java |
1 /* 2 * LexKBSynset.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: LexicalKnowledgeBase.java,v 1.5 2005/01/11 13:51:36 ian Exp $ 14 */ 15 16 package gate.lexicon; 17 18 19 import java.util.Iterator; 20 import java.util.List; 21 22 public interface LexicalKnowledgeBase extends Lexicon { 23 24 /** returns the lexicon version */ 25 public String getVersion(); 26 27 /** returns all synsets for a specific POS */ 28 public Iterator getSynsets(Object pos); 29 30 /** returns list of WordSense-s for specific lemma */ 31 public List lookupWord(String lemma); 32 33 /** returns list of WordSense-s for specific lemma of the specified POS */ 34 public List lookupWord(String lemma, Object pos); 35 36 public Object[] getPOSTypes(); 37 38 }