colab list안에 있는 요소 옮기기

조회수 238회

코드는 아래와 같습니다.

! 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()에서 ()안에 넣어서 감정 분석 하고 싶은데, 방법이 있을까요?

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)