Beispiel #1
0
def test_sentiment_entities_utf(capsys):
    snippets.entity_sentiment_text(
        'foo→bar')
    out, _ = capsys.readouterr()
    assert 'Begin Offset : 4' in out
def test_sentiment_entities_text(capsys):
    snippets.entity_sentiment_text()
    out, _ = capsys.readouterr()
    assert 'Content : White House' in out
Beispiel #3
0
def test_sentiment_entities_text(capsys):
    snippets.entity_sentiment_text(
        'President Obama is speaking at the White House.')
    out, _ = capsys.readouterr()
    assert 'Content : White House' in out