Detailed Instructions: Given an input stream, the objective of this task is to classify whether words in the stream are grammatically correct or not. The input to this task is a stream of words, possibly from captions generated by a speech-to-text engine, and the output is a classification of each word from the labels (reason) = [NO_DIFF (correct), CASE_DIFF (case error), PUNCUATION_DIFF (punctuation error), CASE_AND_PUNCUATION_DIFF (both case and punctuation error), STEM_BASED_DIFF (stem word error), DIGIT_DIFF (digit error), INTRAWORD_PUNC_DIFF (intra-word punctuation error), and UNKNOWN_TYPE_DIFF (an error that does not corrrespond to the previous categories)].
Problem:['so', "here's", 'an', 'example', 'of', 'a', 'family', "that's", 'been', 'exposed', 'to', 'a', 'highly', 'contagious', 'respiratory', 'infection', 'called', 'pertussis', 'this', 'disease', 'is', 'also', 'called', 'whooping', 'cough', 'because', '', 'the', 'distinct', 'noise', 'an', 'infected', 'person', 'typically', 'makes', 'when', 'drawing', 'in', 'air', 'after', 'a', 'lengthy', 'coughing', 'fit', 'and', 'this', "isn't", 'just', 'a', 'regular', 'coffee', "it's", 'a', 'powerful', 'forceful', 'cough', 'that', 'continues', 'until', 'all', 'the', 'air', 'has', 'been', 'removed', 'violently', 'from', 'the', 'lungs', 'and', "it's", 'triggered', 'by', 'a', 'reflex', 'from', 'the', 'lungs', 'responding', 'to', 'a', 'buildup', 'of', 'mucus', 'that', 'occurs', 'when', 'the', 'bacteria', 'causes', 'damage', 'in', 'the', 'airways', 'so', "let's", 'look', 'into', 'how', 'this']
Solution:
UNKNOWN_TYPE_DIFF CASE_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF PUNCUATION_DIFF CASE_AND_PUNCUATION_DIFF CASE_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF CASE_DIFF CASE_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF PUNCUATION_DIFF CASE_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF UNKNOWN_TYPE_DIFF CASE_DIFF NO_DIFF PUNCUATION_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF PUNCUATION_DIFF CASE_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF INTRAWORD_PUNC_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF UNKNOWN_TYPE_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF PUNCUATION_DIFF CASE_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF NO_DIFF