/** * Create a realiser with a lexicon (should match lexicon used for * NLGFactory) * * @param lexicon */ public Realiser(Lexicon lexicon) { initialise(); setLexicon(lexicon); }
public void setLexicon(Lexicon newLexicon) { syntax.setLexicon(newLexicon); morphology.setLexicon(newLexicon); orthography.setLexicon(newLexicon); }