Files
g.hnyhua.cn/TencentCloud/Asr/V20190614/Models/CreateAsrVocabRequest.cs

66 lines
2.4 KiB
C#
Raw Normal View History

/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Asr.V20190614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateAsrVocabRequest : AbstractModel
{
/// <summary>
/// 热词表名称长度在1-255之间
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 热词表描述长度在0-1000之间
/// </summary>
[JsonProperty("Description")]
public string Description{ get; set; }
/// <summary>
/// 词权重数组包含全部的热词和对应的权重。每个热词的长度不大于10权重为[1,10]之间整数数组长度不大于128
/// </summary>
[JsonProperty("WordWeights")]
public HotWord[] WordWeights{ get; set; }
/// <summary>
/// 词权重文件纯文本文件的二进制base64编码以行分隔每行的格式为word|weight即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
/// 当用户传此参数参数长度大于0即以此参数解析词权重WordWeights会被忽略
/// </summary>
[JsonProperty("WordWeightStr")]
public string WordWeightStr{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamArrayObj(map, prefix + "WordWeights.", this.WordWeights);
this.SetParamSimple(map, prefix + "WordWeightStr", this.WordWeightStr);
}
}
}