org.hops.nla
Class TalpNLP
java.lang.Object
org.hops.nla.TalpNLP
public class TalpNLP
- extends java.lang.Object
TalpNLP allows accessing the Prolog Parser via HTTP request.
- Version:
- 3.0
- Author:
- mgonzalez
Constructor Summary |
TalpNLP(java.lang.String host,
java.lang.String port,
java.lang.String path,
java.lang.String method,
java.lang.String grammars_file)
Creates a new instance of TalpNLP |
Method Summary |
java.lang.StringBuffer |
AnalyzerCall(java.lang.String sentence,
java.util.ArrayList expectedAttributes,
java.lang.String Lang)
Calls the prolog parser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TalpNLP
public TalpNLP(java.lang.String host,
java.lang.String port,
java.lang.String path,
java.lang.String method,
java.lang.String grammars_file)
- Creates a new instance of TalpNLP
AnalyzerCall
public java.lang.StringBuffer AnalyzerCall(java.lang.String sentence,
java.util.ArrayList expectedAttributes,
java.lang.String Lang)
- Calls the prolog parser
- Parameters:
sentence
- the sentence to parserexpectedAttributes
- the name of the attributes the DM is expectingLang
- the language of the communication
- Returns:
- the document returned by the parser (XML file)
- See Also:
parser2moves