›Write the sentiment score function
1.4 · Challenge
Write the sentiment score function
In this challenge, you will write sentiment.score, a function that scores a piece of text with the VADER sentiment library and returns the result as a map.
The tests in src/test/java/sentiment/ScoreTest.java describe what the function must do. They check four cases: positive text, text in capitals, blank text and null.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register