edit ngram.py
add only 1 'EOS' to each sentence.(originally n-1)