1
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
40 }
41 }