Method AskQuestion
AskQuestion(String, Action<NLPResponse>)
Asks question to NLP service.
Declaration
public void AskQuestion(string question, Action<NLPResponse> onComplete)
Parameters
Type | Name | Description |
---|---|---|
System.String | question | User input question |
Action<NLPResponse> | onComplete | Delegate to execute on successful request, typially parses JSON response |
Implements
AskQuestion(String, String, String, Action<NLPResponse>)
Asks question to NLP service.
Declaration
public void AskQuestion(string uri, string question, string authorizationKey, Action<NLPResponse> onComplete)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | URL to send request to |
System.String | question | User input question |
System.String | authorizationKey | Key from Azure |
Action<NLPResponse> | onComplete | Delegate to execute on successful request, typically parses JSON response |
AskQuestion(String, String, Int32, String, Action<NLPResponse>)
Asks question to NLP service.
Declaration
public void AskQuestion(string uri, string question, int size, string authorizationKey, Action<NLPResponse> onComplete)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | URL to send request to |
System.String | question | User input question |
System.Int32 | size | Size of desired returned answer set, defaults to 1 |
System.String | authorizationKey | Key from Azure |
Action<NLPResponse> | onComplete | Delegate to execute on successful request, typically parses JSON response |