EntityLabel Clase
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. authoring. models. EntityLabel
- com.
public class EntityLabel
Define el tipo de entidad y la posición de la entidad extraída en el ejemplo.
Resumen del método
Modificador y tipo | Método y descripción |
---|---|
List<Entity |
children()
Obtiene el valor secundario. |
int |
endTokenIndex()
Obtiene el valor endTokenIndex. |
String |
entityName()
Obtenga el valor entityName. |
String |
role()
Obtenga el valor del rol. |
UUID |
roleId()
Obtenga el valor roleId. |
int |
startTokenIndex()
Obtenga el valor startTokenIndex. |
Entity |
withChildren(List<EntityLabel> children)
Establezca el valor secundario. |
Entity |
withEndTokenIndex(int endTokenIndex)
Establezca el valor endTokenIndex. |
Entity |
withEntityName(String entityName)
Establezca el valor entityName. |
Entity |
withRole(String role)
Establezca el valor del rol. |
Entity |
withRoleId(UUID roleId)
Establezca el valor roleId. |
Entity |
withStartTokenIndex(int startTokenIndex)
Establezca el valor startTokenIndex. |
Detalles del método
children
public List
Obtiene el valor secundario.
Returns:
endTokenIndex
public int endTokenIndex()
Obtiene el valor endTokenIndex.
Returns:
entityName
public String entityName()
Obtenga el valor entityName.
Returns:
role
public String role()
Obtenga el valor del rol.
Returns:
roleId
public UUID roleId()
Obtenga el valor roleId.
Returns:
startTokenIndex
public int startTokenIndex()
Obtenga el valor startTokenIndex.
Returns:
withChildren
public EntityLabel withChildren(List
Establezca el valor secundario.
Parameters:
Returns:
withEndTokenIndex
public EntityLabel withEndTokenIndex(int endTokenIndex)
Establezca el valor endTokenIndex.
Parameters:
Returns:
withEntityName
public EntityLabel withEntityName(String entityName)
Establezca el valor entityName.
Parameters:
Returns:
withRole
public EntityLabel withRole(String role)
Establezca el valor del rol.
Parameters:
Returns:
withRoleId
public EntityLabel withRoleId(UUID roleId)
Establezca el valor roleId.
Parameters:
Returns:
withStartTokenIndex
public EntityLabel withStartTokenIndex(int startTokenIndex)
Establezca el valor startTokenIndex.
Parameters:
Returns:
Se aplica a
Azure SDK for Java