def test_sarcasm_model(self):
    pipe = nlu.load('sarcasm', verbose=True)
    df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='sentence')
    print(df.columns)
    print(df['sentence'], df[['sarcasm', 'sarcasm_confidence']])
    df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='document')
    self.assertIsInstance(df.iloc[0]['sarcasm'], str)
    print(df.columns)
    print(df['document'], df[['sarcasm', 'sarcasm_confidence']])
    self.assertIsInstance(df.iloc[0]['sarcasm'], str)
def test_sarcasm_model(self):
    pipe = nlu.load('sarcasm', verbose=True)
    df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='sentence')
    print(df.columns)
    print(df['sentence'], df[['sarcasm', 'sarcasm_confidence']])
    df = pipe.predict(['I love pancaces. I hate Mondays', 'I love Fridays'], output_level='document')
    self.assertIsInstance(df.iloc[0]['sarcasm'], str)
    print(df.columns)
    print(df['document'], df[['sarcasm', 'sarcasm_confidence']])
    self.assertIsInstance(df.iloc[0]['sarcasm'], str)