Sentiment analysis in Stanza

Report a typo

Analyze the code below. Match each sentence with the sentiment score it would obtain in Stanza.

doc = nlp('I have read a new book. The plot was good. I did not like the characters.')
for sentence in doc.sentences:
  print(sentence.sentiment)
Match the items from left and right columns
I have read a new book.
The plot was good.
However, I did not like the characters.
0
1
2
___

Create a free account to access the full topic