EntityLabelObject interface
定義範例中擷取之實體的實體類型和位置。
屬性
children | 範例語句內已識別的實體。 |
end |
擷取實體結束之語句內的索引。 |
entity |
實體類型。 |
role | 實體在語句中扮演的角色。 |
start |
擷取實體啟動之語句內的索引。 |
屬性詳細資料
children
endCharIndex
擷取實體結束之語句內的索引。
endCharIndex: number
屬性值
number
entityName
實體類型。
entityName: string
屬性值
string
role
實體在語句中扮演的角色。
role?: string
屬性值
string
startCharIndex
擷取實體啟動之語句內的索引。
startCharIndex: number
屬性值
number