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; } /// /// 校对位移(相对当前句子) /// [JsonProperty("start_num")] 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; } /// /// 当前句子在段落的序号 /// [JsonProperty("sentence_num")] public int SentenceNumber { get; set; } /// /// 当前句子的校对列表项 /// [JsonProperty("diffs")] public List CorrectItems { get; set; } } }