<jupyter_start><jupyter_text>Transformers<jupyter_code>from transformers import pipeline

classifier = pipeline('sentiment-analysis')

while True:
    sentence = input("input> ")

    if sentence == "exit":
        break

    res = classifier(sentence)
    print(res)<jupyter_output>No model was supplied, defaulted to distilbert-base-uncased-finetuned-sst-2-english (https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english)
{'fraction_non_alphanumeric': 0.11617312072892938, 'fraction_numerical': 0.004555808656036446, 'mean_word_length': 4.945945945945946, 'pattern_counts': {'":': 1, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '597870', 'license': 'Apache-2.0', 'n_tokens_mistral': 155, 'n_tokens_neox': 147, 'n_words': 24, 'path': 'transformers-sentiment-analysis.ipynb', 'repo_name': 'sousamaf/nlpWrnn', 'size': '439'}