Importing and exporting language customization data

If you want to customize the language processing that is done on a knowledge base, you can use the bnsConfig88 command to import and export the text analysis settings that you want to use.

About this task

By default, all knowledge bases use standard language processing scripts and a default mode for each supported language. You can customize the language processing that is done on a knowledge base. For example, you can use language processing scripts and you can set the mode for each language. For more information about custom language processing scripts and language modes, contact IBM Software Support.

In the Management Console, you can access language customization settings by selecting custom content types when you add or configure field definitions.

In Classification Workbench, you can view and edit language customization settings when you configure project options.

To import or export custom language processing data, run the bnsConfig88 command with these arguments:
-ImportLangMode
Specifies that you want to import custom language processing data to use with a knowledge base.
-ExportLangMode
Specifies that you want to export the custom language processing data that is configured for a knowledge base.
host_name
Specifies the host name of the computer where the listener component is installed. If you run the bnsConfig88 command on the local computer, you can specify localhost.
port_number
Specifies the port for the listener component. The default value is 18087.
knowledge_base_name
Specifies the name of the knowledge base that you want to import data to or export data from.
path_to_factory_config_file
Specifies the path and file name of the file that you want to import data from or export data to.

Exporting data to a file

About this task

You might want to export the current language processing data to a file, and then customize the data before you import the file back into the knowledge base. To export language processing data from a knowledge base to a file:

Procedure

Run this command:

bnsConfig88 -ExportLangMode host_name port_number knowledge_base_name path_to_factory_config_file

Importing data to a knowledge base

About this task

To import custom language processing data from a file to a knowledge base:

Procedure

  1. Run this command:

    bnsConfig88 -ImportLangMode host_name port_number knowledge_base_name path_to_config_file

  2. To apply the custom data, restart all instances of the specified knowledge base.