BotSharp/BotSharp.NLP/Models/CRFLite/Decoder/DecoderOptions.cs

49 lines
919 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BotSharp.Models.CRFLite.Decoder
{
public class DecoderOptions
{
/// <summary>
2018-09-14 12:23:37 +00:00
/// Model file path
/// </summary>
public string ModelFileName;
/// <summary>
///
/// </summary>
public string InputFileName;
/// <summary>
///
/// </summary>
public int NBest;
/// <summary>
///
/// </summary>
public int Thread;
/// <summary>
///
/// </summary>
public int ProbLevel;
/// <summary>
2018-09-14 12:23:37 +00:00
/// Max words length in one sentence
/// </summary>
public int MaxWord;
public DecoderOptions()
{
Thread = 1;
2018-09-14 16:31:35 +00:00
NBest = 2;
ProbLevel = 0;
2018-09-14 12:23:37 +00:00
MaxWord = 128;
}
}
}