Skip to Content
avatar image
Former Member

HANA Text analytics - Custom Dictionary & Config issue

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
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 06, 2017 at 05:16 AM

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

    Thanks

    Sudarshan

    Add comment
    10|10000 characters needed characters exceeded