Letter Trigram for Bag of Words Using Letter Trigram to reduce the impact of grammar error and spell mistake in Social Media: Twitter and Instagram. This script can help your build the trigram dictionary. Usage: python trigram.py file_name output_file_name