BotSharp/BotSharp.Core/Engines/NlpDoc.cs

25 lines
647 B
C#
Raw Normal View History

2018-08-29 22:06:27 +00:00
using BotSharp.Core.Abstractions;
2018-10-26 13:09:44 +00:00
using CherubNLP.Tokenize;
2018-10-26 02:30:59 +00:00
using BotSharp.Platform.Models.AiResponse;
2018-10-25 04:54:26 +00:00
using BotSharp.Platform.Models.Entities;
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.Core.Engines
{
public class NlpDoc
{
2018-08-29 22:06:27 +00:00
public INlpPredict Tokenizer { get; set; }
public List<NlpDocSentence> Sentences { get; set; }
}
public class NlpDocSentence
{
public string Text { get; set; }
public List<Token> Tokens { get; set; }
public List<NlpEntity> Entities { get; set; }
public TextClassificationResult Intent { get; set; }
}
}