Print

Print


Dear All

I am trying to pass python/jython expression in Openrefine for sentiment
analysis for a textual data column. The service supports non-GET call like:

curl -X POST -F 'text=["Come on,lets play together",
"Team performed well overall."]' -F
'api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxx'
https://apis.paralleldots.com/v4/sentiment_batch

How this can be reformatted inside python/jython expression in Openrefine?

I am able to convert such expression where there is no API key authentication
required (like NLTK - https://text-processing.com/) but don't have any
clue how to handle API key in
post=urllib2.urlopen().

Help is solicited...

Regards

-----------------------------------------------------------------------
Dr. Parthasarathi Mukhopadhyay
Professor, Department of Library and Information Science,
University of Kalyani, Kalyani - 741 235 (WB), India
-----------------------------------------------------------------------