Exercise 1: Import and Export Entities Via CSV Files: On This Link
Exercise 1: Import and Export Entities Via CSV Files: On This Link
Click on this link to download a CSV file with two new entities I prepared (i.e.,
@occasion and @relationship).
If clicking on the link opens the file in a new tab, ensure you save the file on your disk
(press CRTL+S on Windows or ⌘+S on Mac) and then proceed with importing the new
entities by clicking on the Import entities button in the Entities section.
As usual, you’ll be asked to select the CSV file you downloaded and then click Import.
Upon successful upload and import of your entities, you should see a confirmation dialog
similar to the one shown in the image below.
Lab 5: Import and Export Entities
Click Done and you should see two new entities. We'll use these two entities later on in the
chatbot. For now, this will serve as a good exercise on importing entities.
The only real difference you need to be aware of, as far as importing goes, lies in the structure
of the CSV file. For intents, it was example,intent. Entities can optionally have synonyms and
patterns as well, so the structure is different.
If you open the CSV file I provided you with, you'll notice that each line has the entity name
first, followed by a value, followed by a comma separated list of synonyms if any have been
provided for that entity value. If a pattern is specified instead, it will also appear here.