def testBigrams(self): self.expected = { 'PRP VBP': 2, 'VBP NNS': 2, 'NNS ,': 1, ', CC': 1, 'CC PRP': 1, 'NNS .': 1 } self.result = pos_n_grams.quantify_variant(self.analysis, 1)
def testUnigrams(self): self.expected = { 'PRP': 2, 'VBP': 2, 'NNS': 2, ',': 1, 'CC': 1, '.': 1, } self.result = pos_n_grams.quantify_variant(self.analysis, 0)
def testUnigrams(self): self.expected = { 'PRP': 2, 'VBP': 2, 'NNS': 2, ',': 1, 'CC':1, '.': 1, } self.result = pos_n_grams.quantify_variant(self.analysis, 0)