public class Spotlight extends Object
| Modifier and Type | Field | Description |
|---|---|---|
private String |
confidence |
|
(package private) static org.slf4j.Logger |
log |
|
private String |
requestURL |
|
private String |
support |
| Constructor | Description |
|---|---|
Spotlight() |
| Modifier and Type | Method | Description |
|---|---|---|
private String |
doTASK(String inputText) |
|
String |
getConfidence() |
|
Map<String,List<Entity>> |
getEntities(String question) |
|
String |
getSupport() |
|
static void |
main(String[] args) |
|
private String |
post(String urlParameters,
String requestURL) |
|
protected String |
requestPOST(String input,
String requestURL) |
|
void |
setConfidence(double i) |
|
void |
setSupport(String support) |
|
String |
toString() |
static org.slf4j.Logger log
private String requestURL
private String confidence
private String support
private String post(String urlParameters, String requestURL) throws MalformedURLException, IOException, ProtocolException
private String doTASK(String inputText) throws MalformedURLException, IOException, ProtocolException
public static void main(String[] args)
public String getConfidence()
public void setConfidence(double i)
public String getSupport()
public void setSupport(String support)
Copyright © 2016–2018 Pivotal Software, Inc.. All rights reserved.