com.languagecomputer.api.sample
Class QuestionAnsweringViaWebClients

java.lang.Object
  extended by com.languagecomputer.api.sample.QuestionAnsweringViaWebClients

public class QuestionAnsweringViaWebClients
extends Object

Sample code for performing question answering via BaseWebClients. Alternatively, one could use a QuestionAnsweringService such as the DefaultQuestionAnsweringMetaService which requires each service to be run within the same process. However, this sample code allows for each service to run on a separate machine.

Since:
1.0
Author:
Kirk Roberts

Constructor Summary
QuestionAnsweringViaWebClients()
           
 
Method Summary
static void main(String[] argv)
          Command line argument structure: [host1] [host2] [host3] [host4] [question].
Where:
[host1] is the hostname for the QuestionProcessingService
[host2] is the hostname for the DocumentRetrievalService
[host3] is the hostname for the AnswerExtractionService
[host4] is the hostname for the AnswerFusionService
[question] is the question to ask the system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionAnsweringViaWebClients

public QuestionAnsweringViaWebClients()
Method Detail

main

public static void main(String[] argv)
                 throws Exception
Command line argument structure: [host1] [host2] [host3] [host4] [question].
Where:
[host1] is the hostname for the QuestionProcessingService
[host2] is the hostname for the DocumentRetrievalService
[host3] is the hostname for the AnswerExtractionService
[host4] is the hostname for the AnswerFusionService
[question] is the question to ask the system

Throws:
Exception


Copyright © 2009. All Rights Reserved.