The Answer Server configuration file contains information about the subcomponents in your Passage Extractor systems.
For any Passage Extractor system, you must configure the host and port details of your data store, which is an IDOL Content component that contains the documents that Answer Server uses to find answers. For entity extraction, you must also configure the details for your Eduction grammars, and the Passage Extractor Agentstore component.
Passage extractor also uses question classifiers, to determine the type of a question, and therefore what entities to extract from candidate answers. The classifier is required. To configure one, you must train a classifier, which you can optionally save to use in future sessions.
The following procedure describes how to configure the Passage Extractor system in Answer Server.
For more details about the configuration parameters for the Passage Extractor system, refer to the Answer Server Reference.
To configure the Passage Extractor System
Open the Answer Server configuration file in a text editor.
Find the [Systems]
section, or create one if it does not exist. This section contains a list of systems, which refer to the associated configuration sections for each system.
After any existing systems, add an entry for your new Passage Extractor system. For example:
[Systems] 0=MyAnswerBank 1=MyFactBank 2=MyPassageExtractor
Create a configuration section for your Passage Extractor system, with the name that you specified. For example, [MyPassageExtractor]
.
Set Type
to PassageExtractor
.
Set IDOLHost
and IDOLACIPort
to the host name and ACI Port of the IDOL Content component that contains the documents that you want to use to find answers.
Set AgentstoreHost
and AgentstoreACIPort
to the host name and ACI Port of the IDOL Content component that contains entity agents.
Set EductionGrammars
to a comma-separated list of the Eduction grammars to use for entity extraction.
If you want to save the question classifier files, set ClassifierFile
to the location and name of the file to use to save the classifier file, and set LabelFile
to the location and name of the file to use to save the label file.
The Answer Server installation ZIP package includes a default set of classifier training files. To use these files, set ClassifierFile
to the location of the en_svm.dat
file, and set LabelFile
to the location of the en_labels.dat
file.
Save and close the configuration file.
Restart Answer Server for your changes to take effect.
For example:
[MyPassageExtractor] Type=PassageExtractor // Data store IDOL IdolHost=localhost IdolAciport=6002 // Entity Agentstore AgentStoreHost=localhost AgentStoreAciport=5002 // Eduction EductionGrammars=pe_grammar.ecr,NUM.ecr,HUM.ecr,date_eng.ecr,money_eng.ecr // Classifier Files ClassifierFile=en_svm.dat LabelFile=en_labels.dat
The default installation of passage extractor includes the pe_grammar.ecr
, and example question classifier training files for English. To use passage extractor in another language, you must:
Language
configuration parameter to the appropriate language, either in the [Server]
section (to set the language for all of Answer Server), or in the passage extractor system configuration section (to set the language for just passage extractor). You might also want to set the StopList
parameter. See Language Configuration.EductionGrammars
parameter to use the grammar file for the appropriate language. Passage extractor uses the same grammar files as fact bank. The Answer Server installation includes appropriate grammars for English, French, German, Italian, and Spanish. If you are interested in using passage extractor in other languages, contact your Micro Focus account manager.
|