コード例 #1
0
 def test_adjective_sentiment1(self):
     processor = Processor()
     self.assertEqual(
         processor.textAdjectives("This was a horrific project.")[1], -1)
コード例 #2
0
 def test_adjectives2(self):
     processor = Processor()
     self.assertTrue("interesting" in processor.textAdjectives(
         "I found this project to be very interesting.")[0])
コード例 #3
0
 def test_adjective_sentiment1(self):
     processor = Processor()
     self.assertEqual(
         processor.textAdjectives("This was a great experience.")[1], 1)
コード例 #4
0
 def test_adjectives1(self):
     processor = Processor()
     self.assertTrue("cheerful" in processor.textAdjectives(
         "The host was cheerful.")[0])