using Newtonsoft.Json; using System.Collections.Generic; namespace UtilLib { public class CorrectContext { public string Key { get; set; } /// /// 句子原始文本(可能过滤掉空格等特殊字符) /// public string Insert { get; set; } /// /// 校对后的文本 /// [JsonProperty("new_text")] public string NewText { get; set; } /// /// 句子原始文本长度 /// [JsonProperty("insert_len")] public int InsertLength { get; set; } public int Offset { get; set; } public int Paragraph_offset { get; set; } /// /// 句子所在文档的段落数(从1开始) /// [JsonProperty("paragraph_num")] public int ParagraphNumber { get; set; } /// /// 句子在段落中的其实位置 /// [JsonProperty("sentence_offset")] public int SentenceOffset { get; set; } /// /// 当前句子的校对列表项 /// public List CorrectItems { get; set; } } }