public class ParseQuery
A NLP parse query.
| Constructor and Description |
|---|
ParseQuery(java.util.List<java.lang.String> queries,
java.lang.String namespace,
java.lang.String applicationName,
QueryContext context,
QueryState state,
java.util.Set<ai.tock.nlp.front.shared.parser.IntentQualifier> intentsSubset)
A NLP parse query.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
component1()
A list of queries to parse.
|
java.lang.String |
component2()
The namespace of the application.
|
java.lang.String |
component3()
The name of the application.
|
QueryContext |
component4()
The context of the query.
|
QueryState |
component5()
The state of the query.
|
java.util.Set<ai.tock.nlp.front.shared.parser.IntentQualifier> |
component6()
The query is restricted to the specified intents only.
|
ParseQuery |
copy(java.util.List<java.lang.String> queries,
java.lang.String namespace,
java.lang.String applicationName,
QueryContext context,
QueryState state,
java.util.Set<ai.tock.nlp.front.shared.parser.IntentQualifier> intentsSubset)
A NLP parse query.
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getApplicationName()
The name of the application.
|
QueryContext |
getContext()
The context of the query.
|
java.util.Set<ai.tock.nlp.front.shared.parser.IntentQualifier> |
getIntentsSubset()
The query is restricted to the specified intents only.
|
java.lang.String |
getNamespace()
The namespace of the application.
|
java.util.List<java.lang.String> |
getQueries()
A list of queries to parse.
|
QueryState |
getState()
The state of the query.
|
int |
hashCode() |
java.lang.String |
toString() |
public ParseQuery(@NotNull
java.util.List<java.lang.String> queries,
@NotNull
java.lang.String namespace,
@NotNull
java.lang.String applicationName,
@NotNull
QueryContext context,
@NotNull
QueryState state,
@NotNull
java.util.Set<ai.tock.nlp.front.shared.parser.IntentQualifier> intentsSubset)
A NLP parse query.
queries - A list of queries to parse.Usually there is only one element in the list, but some STT engines provides alternatives.namespace - The namespace of the application.applicationName - The name of the application.context - The context of the query.state - The state of the query.intentsSubset - The query is restricted to the specified intents only.If the set is empty, all intents of the application are allowed.@NotNull public java.util.List<java.lang.String> getQueries()
A list of queries to parse.
Usually there is only one element in the list, but some STT engines provides alternatives.
@NotNull public java.lang.String getNamespace()
The namespace of the application.
@NotNull public java.lang.String getApplicationName()
The name of the application.
@NotNull public QueryContext getContext()
The context of the query.
@NotNull public QueryState getState()
The state of the query.
@NotNull public java.util.Set<ai.tock.nlp.front.shared.parser.IntentQualifier> getIntentsSubset()
The query is restricted to the specified intents only.
If the set is empty, all intents of the application are allowed.
@NotNull public java.util.List<java.lang.String> component1()
A list of queries to parse.
Usually there is only one element in the list, but some STT engines provides alternatives.
@NotNull public java.lang.String component2()
The namespace of the application.
@NotNull public java.lang.String component3()
The name of the application.
@NotNull public QueryContext component4()
The context of the query.
@NotNull public QueryState component5()
The state of the query.
@NotNull public java.util.Set<ai.tock.nlp.front.shared.parser.IntentQualifier> component6()
The query is restricted to the specified intents only.
If the set is empty, all intents of the application are allowed.
@NotNull public ParseQuery copy(@NotNull java.util.List<java.lang.String> queries, @NotNull java.lang.String namespace, @NotNull java.lang.String applicationName, @NotNull QueryContext context, @NotNull QueryState state, @NotNull java.util.Set<ai.tock.nlp.front.shared.parser.IntentQualifier> intentsSubset)
A NLP parse query.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)