Skip to Content
0

HANA Text analytics - Custom Dictionary & Config issue

Nov 03, 2017 at 03:05 PM

51

avatar image
Former Member

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
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

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

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

Thanks

Sudarshan

Share
10 |10000 characters needed characters left characters exceeded