Files
g.hnyhua.cn/TencentCloud/Soe/V20180724/Models/KeywordScore.cs
2026-02-07 15:48:27 +08:00

80 lines
3.3 KiB
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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);
}
}
}