BotSharp/BotSharp.Core/Engines/Jieba.NET/Token.cs
Oceania2018 6019d9268f 1. Embed jieba.NET source code.
2. Remove publish profile.
3. Fix docker build
2018-09-21 06:02:58 -05:00

21 lines
523 B
C#

namespace JiebaNet.Segmenter
{
public class Token
{
public string Word { get; set; }
public int StartIndex { get; set; }
public int EndIndex { get; set; }
public Token(string word, int startIndex, int endIndex)
{
Word = word;
StartIndex = startIndex;
EndIndex = endIndex;
}
public override string ToString()
{
return string.Format("[{0}, ({1}, {2})]", Word, StartIndex, EndIndex);
}
}
}