Reputation: 29
I need a csv file containing entities, values and synonyms. (For Ibm Watson Conversation). Thanks. I have tried converting txt files to csv files but there are minor errors. Can someone please help?
Edited: I need a csv file WITH entities. The entities should contain values and synonyms such as:
'entity','value','synonyms'
example: weekday,Monday,Mon
weekday,Tuesday,Tue,Tues
Upvotes: 1
Views: 1220
Reputation: 9359
The following documentation page explains how to create the modified-CSV file for entity importing. As well as sample data.
http://www.ibm.com/watson/developercloud/doc/conversation/entities.html#importing-entities
To summarize, the format - currently looks as follows: On each line in the csv file you specify:
<entity>,<value>,<synonyms>
where <entity>
is the name of an entity, <value>
is a value for the entity, and <synonyms>
is a comma-separated list of synonyms for that value.
For example:
weekday,Tuesday,Tue,Tues
So you can create a csv file by using a common text editor and put there lines:
weekday,Monday,Mon
weekday,Tuesday,Tue,Tues
weekday,Wednesday,Wed
weekday,Thursday,Thu,Thurs
weekday,Friday,Fri
weekday,Saturday,Sat
weekday,Sunday,Sun,Sundy
to define an entity capturing the weekday.
Upvotes: 1