using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace wispro.sp.entity.CompareCase
{
public class CompareResult
{
public int Id { get; set; }
///
/// 源字符串字数
///
public int oldWordCount { get; set; }
///
/// 新字符串字数
///
public int newWordCount { get; set; }
///
/// 修订后文档相比原文档删除的字数
///
public int DeleteCount { get; set; }
///
/// 修改后文档相比原文档插入的字数
///
public int InsertCount { get; set; }
///
/// 修订处数量
///
public int EditCount { get; set; }
///
/// 包括修订文字版本的文档
///
public string CompareResultString { get; set; }
[JsonIgnore]
///
/// 总的修改比率
///
public double diffRate
{
get
{
return ((double)DeleteCount + (double)InsertCount) / (double)oldWordCount;
}
}
public double TextSimilarity { get; set; } = 0.0;
}
}