80 lines
3.3 KiB
C#
80 lines
3.3 KiB
C#
/*
|
||
* 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.Soe.V20180724.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class KeywordScore : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 关键词
|
||
/// </summary>
|
||
[JsonProperty("Keyword")]
|
||
public string Keyword{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 发音精准度,取值范围[-1, 100],当取-1时指完全不匹配,当为句子模式时,是所有已识别单词准确度的加权平均值,在reftext中但未识别出来的词不计入分数中。当为流式模式且请求中IsEnd未置1时,取值无意义。
|
||
/// </summary>
|
||
[JsonProperty("PronAccuracy")]
|
||
public float? PronAccuracy{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 发音流利度,取值范围[0, 1],当为词模式时,取值无意义;当为流式模式且请求中IsEnd未置1时,取值无意义
|
||
/// </summary>
|
||
[JsonProperty("PronFluency")]
|
||
public float? PronFluency{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 发音完整度,取值范围[0, 1],当为词模式时,取值无意义;当为流式模式且请求中IsEnd未置1时,取值无意义
|
||
/// </summary>
|
||
[JsonProperty("PronCompletion")]
|
||
public float? PronCompletion{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 详细发音评估结果
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("Words")]
|
||
public WordRsp[] Words{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracyfloat)× 完整度(PronCompletionfloat)×(2 - 完整度(PronCompletionfloat)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。
|
||
/// </summary>
|
||
[JsonProperty("SuggestedScore")]
|
||
public float? SuggestedScore{ 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 + "Keyword", this.Keyword);
|
||
this.SetParamSimple(map, prefix + "PronAccuracy", this.PronAccuracy);
|
||
this.SetParamSimple(map, prefix + "PronFluency", this.PronFluency);
|
||
this.SetParamSimple(map, prefix + "PronCompletion", this.PronCompletion);
|
||
this.SetParamArrayObj(map, prefix + "Words.", this.Words);
|
||
this.SetParamSimple(map, prefix + "SuggestedScore", this.SuggestedScore);
|
||
}
|
||
}
|
||
}
|
||
|