function addText (InputSteam) added to NgramModel