Implemented NGramAnnotator.
Minor adjustment on type system.