ExternalEntity Class
- java.
lang. Object - com.
microsoft. bot. ai. luis. ExternalEntity
- com.
public class ExternalEntity
Request Body element to use when passing External Entities to the Luis Service call. Defines a user predicted entity that extends an already existing one.
Constructor Summary
| Constructor | Description |
|---|---|
| ExternalEntity() |
Initializes a new instance of External |
| ExternalEntity(String entity, int start, int length, JsonNode resolution) |
Initializes a new instance of External |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getEntity()
Gets the name of the entity to extend. |
| int |
getLength()
Gets the length of the predicted entity. |
| com.fasterxml.jackson.databind.JsonNode |
getResolution()
Gets a user supplied custom resolution to return as the entity's prediction. |
| int |
getStart()
Gets the start character index of the predicted entity. |
| void |
setEntity(String entity)
Sets the name of the entity to extend. |
| void |
setLength(int length)
Sets the length of the predicted entity. |
| void |
setResolution(JsonNode resolution)
Sets a user supplied custom resolution to return as the entity's prediction. |
| void |
setStart(int start)
Sets the start character index of the predicted entity. |
| void |
validate()
Validate the object. |
Methods inherited from java.lang.Object
Constructor Details
ExternalEntity
public ExternalEntity()
Initializes a new instance of ExternalEntity.
ExternalEntity
public ExternalEntity(String entity, int start, int length, JsonNode resolution)
Initializes a new instance of ExternalEntity.
Parameters:
Method Details
getEntity
public String getEntity()
Gets the name of the entity to extend.
Returns:
getLength
public int getLength()
Gets the length of the predicted entity.
Returns:
getResolution
public JsonNode getResolution()
Gets a user supplied custom resolution to return as the entity's prediction.
Returns:
getStart
public int getStart()
Gets the start character index of the predicted entity.
Returns:
setEntity
public void setEntity(String entity)
Sets the name of the entity to extend.
Parameters:
setLength
public void setLength(int length)
Sets the length of the predicted entity.
Parameters:
setResolution
public void setResolution(JsonNode resolution)
Sets a user supplied custom resolution to return as the entity's prediction.
Parameters:
setStart
public void setStart(int start)
Sets the start character index of the predicted entity.
Parameters:
validate
public void validate()
Validate the object.
Throws: