I want to change my code from read and process from a string of sentence into read from a csv file, and process line by line.
This is my program in VS Code.
import paralleldots
paralleldots.set_api_key("API KEY")
# for single sentence
text="Come on, lets play together"
lang_code="en"
response=paralleldots.sentiment(text,lang_code)
print(response)
I expect the output is run for each line of sentence in a specific csv file, instead of just from a string of sentence.