Geetika Saini Posted December 5, 2019 Share Posted December 5, 2019 Hello, I am trying to implement the function explained in the following link- https://community.spotfire.com/feed-items/text-analytics-sentiment-translations-and-beyond-using-aws-and-azure-through-tibco As per the example,the Id used for text analytics is numeric type but I have id which is of "string" datatype,so when i run the sript it gives me error . Can anyone suggest how can i amend the script to use string type Id in this example. Thanks&Regards, Geetika Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted December 6, 2019 Share Posted December 6, 2019 Below line in aws script makes id values numeric : text_results['SentimentScore'][idColumnName] = int(row[idColumnName]) for your case, you can remove int() and just use row[idColumnName] Link to comment Share on other sites More sharing options...
Geetika Saini Posted December 12, 2019 Author Share Posted December 12, 2019 Hello Khusboo, i did try that but it still gives me error. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now