application_vnd.jupyter.stderr_output_1.png
from datasets import load_dataset, Features, Value, Dataset

from transformers import pipeline

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

dftrn = pd.read_csv('../input/nlp-getting-started/train.csv')
dftes = pd.read_csv('../input/nlp-getting-started/test.csv')
dfsub = pd.read_csv('../input/nlp-getting-started/sample_submission.csv')

dstrn = Dataset.from_pandas(dftrn, split='train')
dstes = Dataset.from_pandas(dftes, split='test')

clsfr = pipeline('text-classification', device=0)

restrn = clsfr(dstrn['text'])

len(restrn)