function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashutosh Tripathi 34Ashutosh Tripathi 34 

Creating dataset for sentiment api in Einstein

I using zip file to create dataset for Sentiment API.

Curl Request:
curl -X POST -H "Authorization: Bearer ZMHLSSO23YHFKO7VBD4J6BJDT7DFHIEBMDB5RQIPZAXNCITLX5RL3DLHEJCSQWMFOZDHSRMT3MELHCHQUSJQ5SL6I5GVCYWMUGKK4CQ" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-sentiment" -F "data=@D:\Ashutosh\Einstein\Data.zip" https://api.einstein.ai/v2/language/datasets/upload

Response:
{"id":1095808,"name":"Data","createdAt":"2018-12-26T12:01:37.000+0000","updatedAt":"2018-12-26T12:01:37.000+0000","labelSummary":{"labels":[]},"totalExamples":0,"available":false,"statusMsg":"UPLOADING","type":"text-sentiment","object":"dataset"}

Now I am trying to get the status of dataset

Request:
curl -X GET -H "Authorization: Bearer ZMHLSSO23YHFKO7VBD4J6BJDT7DFHIEBMDB5RQIPZAXNCITLX5RL3DLHEJCSQWMFOZDHSRMT3MELHCHQUSJQ5SL6I5GVCYWMUGKK4CQ" -H "Cache-Control: no-cache" https://api.einstein.ai/v2/language/datasets/1095808

Response:
{"id":1095808,"name":"Data","createdAt":"2018-12-26T12:01:37.000+0000","updatedAt":"2018-12-26T12:01:38.000+0000","labelSummary":{"labels":[]},"totalExamples":0,"totalLabels":0,"available":true,"statusMsg":"FAILED:File parsing failed for dataset Data","type":"text-sentiment","object":"dataset"}

Here is my file record:
Using in a zip folder

Can somebody please let me know what's wrong  here.