File name: customAIPropertyMapping.json
Mount location and example:
./customAIPropertyMapping.json:/usr/local/tomcat/customAIPropertyMapping.json
Content:
{
"featureToPropertyMapping": [
{
"aiBusinessCustom": [
{
"type": "BUSINESS",
"aspect": "acme:businesses",
"property": "acme:business"
}
]
},
{
"aiSportCustom": [
{
"type": "SPORT",
"aspect": "acme:sports",
"property": "acme:sport"
}
]
}
],
"categoryToPropertyMapping": [
{
"aiClassification": {
"aspect": "acme:categories",
"property": "acme:category"
}
}
]
}
In the above JSON snippet:
- The rendition name (e.g.
aiBusiness,aiSport,aiClassification) is used as a key (for both custom entity recognizers and custom classifiers). - The aspect/property names must match the Content Services content model.
- For custom entity recognizers, the entity type (e.g.
BUSINESS,SPORT) must match what's returned in the raw results.