Create a custom entity file
If you have a Named Entity Locator that requires a new entity file, this file is not visible to the Natural language processing engine until after the engine is restarted. Because of this, it is necessary to stop the NLP engine after the entity file is created to ensure that your changes are available the next time the NLP engine is run. The NLP engine restarts on-demand so that it does not use server resources when not in use.
You can create a new custom entity file and then stop the Natural language processing engine by following these steps:
Project Tree, click on the
The properties of the project are displayed, including a link to the location of the project file.
Click on the
A Windows Explorer window opens to the location of your project.
If it does not already exist, create the following folder structure.
Where <language> is the two-character code for the language that you are using.
entities folder, create a new folder with the name of the type of entities you are creating.
The name of the folder, or a singular version of this name, if appropriate, is returned as the Entity Type.
Inside the newly created entity type folder, create a file with the
The name of this file is not used by the NLP engine, but ensure the name is useful and descriptive.
Add content to the new
.cdl file in the following format.
Entity Search Text<tab>Entity Type<tab>Normalized Entity Name
- Save and close the file.
Navigate to and select the class in the
Project Tree where your
Named Entity Locator is located.
The details for that class are displayed.
Scroll down and find the
Natural Language Processing group and then click
Stop Salience Engine.
The Natural language processing engine stops. The next time the NLP engine is needed, it starts on-demand and your new custom entity file is now visible.