|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.sample.QuestionAnsweringViaWebClients
public class QuestionAnsweringViaWebClients
Sample code for performing question answering via BaseWebClient
s.
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.
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 |
---|
public QuestionAnsweringViaWebClients()
Method Detail |
---|
public static void main(String[] argv) throws Exception
[host1] [host2] [host3] [host4] [question]
.QuestionProcessingService
DocumentRetrievalService
AnswerExtractionService
AnswerFusionService
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |