add gram parameter to document class

add gram parameter to document class, default is i.
now we could tokenize with n-gram
Merge branch 'master' of https://github.com/pkushiqiang/SimilarQuestions