|
NLGLexiconImpl |
|
1 /* 2 * NLGLexiconImpl.java 3 * 4 * Copyright (c) 1998-2003, 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: NLGLexiconImpl.java,v 1.4 2003/02/26 16:24:53 kalina Exp $ 14 15 */ 16 17 package gate.lexicon; 18 19 import java.io.Serializable; 20 21 public class NLGLexiconImpl extends MutableLexicalKnowledgeBaseImpl 22 implements Serializable { 23 24 static final long serialVersionUID = -2543190013851016324L; 25 26 public NLGLexiconImpl() { 27 super(); 28 this.setLexiconId("MIAKT NLG Lexicon"); 29 } 30 31 public MutableWord addWord(String lemma) { 32 if (words.containsKey(lemma)) 33 return (MutableWord) words.get(lemma); 34 35 MutableWordImpl newWord = new NLGLexWordImpl(lemma); 36 words.put(lemma, newWord); 37 return newWord; 38 } 39 }
|
NLGLexiconImpl |
|