コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
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)
コード例 #4
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)