BotSharp/BotSharp.NLP/Tokenize/Token.cs

23 lines
481 B
C#
Raw Normal View History

2018-06-13 22:17:35 +00:00
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.NLP.Tokenize
2018-06-13 22:17:35 +00:00
{
public class Token
2018-06-13 22:17:35 +00:00
{
public string Text { get; set; }
public int Offset { get; set; }
public string Pos { get; set; }
public string Tag { get; set; }
public string Lemma { get; set; }
2018-06-13 22:17:35 +00:00
public int End
{
get
{
return Offset + Text.Length - 1;
2018-06-13 22:17:35 +00:00
}
}
}
}