colab list안에 있는 요소 옮기기
조회수 239회
코드는 아래와 같습니다.
! pip install transformers -q from transformers import pipeline emotion = pipleline('sentiment-analysis', model = 'arpanghoshal/EmoRoBERTa') emotion_labels = emotion("??") emotion_labels
huggingface에서 dataset 가져와서 감정 분석 하려고 하는데, 제가 list 형태로 해둔 문장들이 있거든요. 그 문장들을 emotion_labels = emotion()에서 ()안에 넣어서 감정 분석 하고 싶은데, 방법이 있을까요?
댓글 입력