次の方法で共有


EntityLabel クラス

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityLabel

public class EntityLabel

例内で抽出されたエンティティのエンティティの種類と位置を定義します。

メソッドの概要

修飾子と型 メソッドと説明
List<EntityLabel> children()

子の値を取得します。

int endTokenIndex()

endTokenIndex 値を取得します。

String entityName()

entityName 値を取得します。

String role()

ロールの値を取得します。

UUID roleId()

roleId 値を取得します。

int startTokenIndex()

startTokenIndex 値を取得します。

EntityLabel withChildren(List<EntityLabel> children)

子の値を設定します。

EntityLabel withEndTokenIndex(int endTokenIndex)

endTokenIndex 値を設定します。

EntityLabel withEntityName(String entityName)

entityName 値を設定します。

EntityLabel withRole(String role)

ロールの値を設定します。

EntityLabel withRoleId(UUID roleId)

roleId 値を設定します。

EntityLabel withStartTokenIndex(int startTokenIndex)

startTokenIndex 値を設定します。

メソッドの詳細

children

public List children()

子の値を取得します。

Returns:

子の値

endTokenIndex

public int endTokenIndex()

endTokenIndex 値を取得します。

Returns:

endTokenIndex 値

entityName

public String entityName()

entityName 値を取得します。

Returns:

entityName 値

role

public String role()

ロールの値を取得します。

Returns:

ロール値

roleId

public UUID roleId()

roleId 値を取得します。

Returns:

roleId 値

startTokenIndex

public int startTokenIndex()

startTokenIndex 値を取得します。

Returns:

startTokenIndex 値

withChildren

public EntityLabel withChildren(List children)

子の値を設定します。

Parameters:

children - 設定する子値

Returns:

EntityLabel オブジェクト自体。

withEndTokenIndex

public EntityLabel withEndTokenIndex(int endTokenIndex)

endTokenIndex 値を設定します。

Parameters:

endTokenIndex - 設定する endTokenIndex 値

Returns:

EntityLabel オブジェクト自体。

withEntityName

public EntityLabel withEntityName(String entityName)

entityName 値を設定します。

Parameters:

entityName - 設定する entityName 値

Returns:

EntityLabel オブジェクト自体。

withRole

public EntityLabel withRole(String role)

ロールの値を設定します。

Parameters:

role - 設定するロール値

Returns:

EntityLabel オブジェクト自体。

withRoleId

public EntityLabel withRoleId(UUID roleId)

roleId 値を設定します。

Parameters:

roleId - 設定する roleId 値

Returns:

EntityLabel オブジェクト自体。

withStartTokenIndex

public EntityLabel withStartTokenIndex(int startTokenIndex)

startTokenIndex 値を設定します。

Parameters:

startTokenIndex - 設定する startTokenIndex 値

Returns:

EntityLabel オブジェクト自体。

適用対象