Modified training program and added tagging all n-grams at once.