2018-06-15 17:39:24 +00:00
|
|
|
|
using BotSharp.Core.Agents;
|
2018-08-08 21:39:00 +00:00
|
|
|
|
using BotSharp.Core.Engines;
|
2018-06-15 17:39:24 +00:00
|
|
|
|
using Microsoft.Extensions.Configuration;
|
2018-06-14 15:03:01 +00:00
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
2018-08-08 21:39:00 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2018-06-14 15:03:01 +00:00
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Core.Abstractions
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// NLP process pipeline interface
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public interface INlpPipeline
|
|
|
|
|
|
{
|
|
|
|
|
|
IConfiguration Configuration { get; set; }
|
|
|
|
|
|
|
2018-08-08 21:39:00 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Process
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="agent"></param>
|
|
|
|
|
|
/// <param name="data">Intermediate result</param>
|
|
|
|
|
|
/// <param name="meta">Meta data which is packed to model</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<bool> Train(Agent agent, JObject data, PipeModel meta);
|
|
|
|
|
|
Task<bool> Predict(Agent agent, JObject data, PipeModel meta);
|
2018-06-14 15:03:01 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|