LanguageUnderstandingModel class
语言理解模型
方法
from |
使用语言理解服务的应用程序 ID 创建语言理解模型。 |
from |
使用指定的终结点创建语言理解模型。 |
from |
使用语言理解服务的主机名、订阅密钥和应用程序 ID 创建语言理解模型。 |
方法详细信息
fromAppId(string)
使用语言理解服务的应用程序 ID 创建语言理解模型。
static function fromAppId(appId: string): LanguageUnderstandingModel
参数
- appId
-
string
一个字符串,表示语言理解服务的应用程序 ID。
返回
正在创建的语言理解模型。
fromEndpoint(URL)
使用指定的终结点创建语言理解模型。
static function fromEndpoint(uri: URL): LanguageUnderstandingModel
参数
- uri
-
URL
一个字符串,表示语言理解模型的终结点。
返回
正在创建的语言理解模型。
fromSubscription(string, string, string)
使用语言理解服务的主机名、订阅密钥和应用程序 ID 创建语言理解模型。
static function fromSubscription(subscriptionKey: string, appId: string, region: string): LanguageUnderstandingModel
参数
- subscriptionKey
-
string
一个字符串,表示语言理解服务的订阅密钥。
- appId
-
string
一个字符串,表示语言理解服务的应用程序 ID。
- region
-
string
一个字符串,表示语言理解服务的区域(请参阅 区域页面)。
返回
正在创建的语言理解模型。