IBM Support

Customizing spelling correction dictionaries in Watson Explorer Application Builder

Product Documentation


Abstract

This techdoc describes how to manually configure spelling correction dictionaries in Application Builder 11.0.2.2.

Content

Background
By default, Application Builder creates and manages spelling correction dictionaries automatically using registered entity information. It works well in most cases, but it may cause performance issue when the underlying collections are huge and/or there are so many number of corrections.
In the case, you can manage your spelling correction dictionaries by yourself and configure Application Builder to use those dictionaries.

Steps
To configure Application Builder to use manually-built spelling correction dictionaries, do the following:

  1. Create custom spelling correction dictionaries in WEX-FC Engine.
  2. Configure Application Builder to use the custom dictionaries.
    1. Stop Application Builder.
    2. Open $APPBUILDER_INSTALL/wlp/usr/servers/AppBuilder/jvm.options and append the following lines replacing <DICT> with your dictionary name
         -DspellingCorrector.dictionaries=<DICT>
        -D
      dictionaryBuilder.disabled=true
    3. In case you are connecting to multiple Engines, append the following line replacing <ENGINE_URL> with your engine URL to specify which Engine provides spelling correction dictionary:
         -DspellingCorrector.dictionariesEngineUrls=<ENGINE_URL>

      NOTE: Engine URL is like http://wexfc-enine:9080/vivisimo/cgi-bin/velocity.exe (for Engine on Windows)
    4. Save the jvm.options file
    5. Restart Application Builder

[{"Product":{"code":"SS8NLW","label":"IBM Watson Explorer"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"11.0.2.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 June 2018

UID

swg27050590