removed too ram intensive tasks for CD
@@ -16,29 +16,29 @@ class TestSentiment(unittest.TestCase):
print(df['document'], df[['sentiment','sentiment_confidence']])
self.assertIsInstance(df.iloc[0]['sentiment'], str)
- def test_sentiment_imdb_model(self):
- pipe = nlu.load('sentiment.twitter',verbose=True)
- df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='sentence')
- print(df.columns)
- print(df['sentence'], df[['sentiment','sentiment_confidence']])
- df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='document')
- self.assertIsInstance(df.iloc[0]['sentiment'],str )
- print(df.columns)
- print(df['document'], df[['sentiment','sentiment_confidence']])
- self.assertIsInstance(df.iloc[0]['sentiment'], str)
-
-
-
- def test_sentiment_twitter_model(self):
- pipe = nlu.load('sentiment.imdb',verbose=True)
- df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='sentence')
- print(df.columns)
- print(df['sentence'], df[['sentiment','sentiment_confidence']])
- df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='document')
- self.assertIsInstance(df.iloc[0]['sentiment'],str )
- print(df.columns)
- print(df['document'], df[['sentiment','sentiment_confidence']])
- self.assertIsInstance(df.iloc[0]['sentiment'], str)
+ # def test_sentiment_imdb_model(self):
+ # pipe = nlu.load('sentiment.twitter',verbose=True)
+ # df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='sentence')
+ # print(df.columns)
+ # print(df['sentence'], df[['sentiment','sentiment_confidence']])
+ # df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='document')
+ # self.assertIsInstance(df.iloc[0]['sentiment'],str )
+ # print(df.columns)
+ # print(df['document'], df[['sentiment','sentiment_confidence']])
+ # self.assertIsInstance(df.iloc[0]['sentiment'], str)
+
+ #
+ #
+ # def test_sentiment_twitter_model(self):
+ # pipe = nlu.load('sentiment.imdb',verbose=True)
+ # df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='sentence')
+ # print(df.columns)
+ # print(df['sentence'], df[['sentiment','sentiment_confidence']])
+ # df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='document')
+ # self.assertIsInstance(df.iloc[0]['sentiment'],str )
+ # print(df.columns)
+ # print(df['document'], df[['sentiment','sentiment_confidence']])
+ # self.assertIsInstance(df.iloc[0]['sentiment'], str)
