2018-09-04 02:05:57 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-10-25 04:54:26 +00:00
|
|
|
|
namespace BotSharp.Platform.Models.Entities
|
2018-09-04 02:05:57 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class NlpEntity
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// What module or algorithm name
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Extrator { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Entity label
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Entity { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int Start { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public decimal Confidence { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int End
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return Start + Value.Length - 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|