cancel
Showing results for 
Search instead for 
Did you mean: 

HANA Text analytics - Custom Dictionary & Config issue

SudarshanS
Participant
0 Kudos

Hi All,

Am trying to find if a disaster occured by analyzing an input text. For this purpose, have created a custom dictionary as below:

<?xml version="1.0" encoding="UTF-8"?>
<dictionary xmlns="http://www.sap.com/ta/4.0">
   <entity_category name="Disaster">
      <entity_name standard_form="Earthquake">
            <variant name ="earthquake"/>
            <variant name ="Earthquake"/>
            <variant name ="earth quake"/>
            <variant name ="Earth quake"/>
      </entity_name>
     </entity_category>
</dictionary>

then copied the existing SAP config file EXTRACTION_CORE_VOICEOFCUSTOMER.hdbtextconfig and have added the line below:

 <property name="Dictionaries" type="string-list">
...... all pre-existing .. left untouched ....
   <string-list-value>SSDemo::disaster_dict.hdbextdict</string-list-value>
 </property> 

however when I execute the text analysis for the below string, the output contains the City Name, Date and Time, but doesn't identiy the word "Earthquake".. Please can you suggest what I am missing.

Many Thanks

Sudarshan

Earthquake struck New Delhi at 9 AM on 22nd Jan 1999

Accepted Solutions (1)

Accepted Solutions (1)

SudarshanS
Participant
0 Kudos

This was a typo with the Dictionary file extension.. This works perfectly.

Thanks

Sudarshan

Answers (0)