59 lines
1.6 KiB
C#
59 lines
1.6 KiB
C#
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace UtilLib
|
|
{
|
|
public class CorrectContext
|
|
{
|
|
public string Key { get; set; }
|
|
/// <summary>
|
|
/// 句子原始文本(可能过滤掉空格等特殊字符)
|
|
/// </summary>
|
|
public string Insert { get; set; }
|
|
|
|
/// <summary>
|
|
/// 校对后的文本
|
|
/// </summary>
|
|
[JsonProperty("new_text")]
|
|
public string NewText { get; set; }
|
|
|
|
/// <summary>
|
|
/// 句子原始文本长度
|
|
/// </summary>
|
|
//[JsonProperty("insert_len")]
|
|
//public int InsertLength { get; set; }
|
|
|
|
/// <summary>
|
|
/// 校对位移(相对当前句子)
|
|
/// </summary>
|
|
[JsonProperty("start_num")]
|
|
public int Offset { get; set; }
|
|
|
|
//public int Paragraph_offset { get; set; }
|
|
|
|
/// <summary>
|
|
/// 句子所在文档的段落数(从1开始)
|
|
/// </summary>
|
|
[JsonProperty("paragraph_num")]
|
|
public int ParagraphNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 句子在段落中的起始位置
|
|
/// </summary>
|
|
[JsonProperty("sentence_offset")]
|
|
public int SentenceOffset { get; set; }
|
|
|
|
/// <summary>
|
|
/// 当前句子在段落的序号
|
|
/// </summary>
|
|
[JsonProperty("sentence_num")]
|
|
public int SentenceNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 当前句子的校对列表项
|
|
/// </summary>
|
|
[JsonProperty("diffs")]
|
|
public List<CorrectItem> CorrectItems { get; set; }
|
|
}
|
|
}
|