A simple language model implementation.(based on tf-idf model)