2018-03-28 22:08:49 +00:00
|
|
|
|
using BotSharp.Core.Agents;
|
2018-03-21 21:07:43 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-03-28 22:08:49 +00:00
|
|
|
|
namespace BotSharp.Core.Engines
|
2018-03-21 21:07:43 +00:00
|
|
|
|
{
|
|
|
|
|
|
public interface IAgentImporter
|
|
|
|
|
|
{
|
2018-08-15 10:46:53 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// data dir
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
string AgentDir { get; set; }
|
|
|
|
|
|
|
2018-03-21 21:07:43 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Load agent summary
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
2018-08-28 14:58:35 +00:00
|
|
|
|
Agent LoadAgent(AgentImportHeader agentHeader);
|
2018-03-21 21:07:43 +00:00
|
|
|
|
|
2018-06-22 19:42:53 +00:00
|
|
|
|
/// <summary>
|
2018-08-15 10:46:53 +00:00
|
|
|
|
/// Load user customized entity type which defined in dictionary
|
2018-06-22 19:42:53 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="agent"></param>
|
2018-08-15 10:46:53 +00:00
|
|
|
|
void LoadCustomEntities(Agent agent);
|
2018-03-21 21:07:43 +00:00
|
|
|
|
|
2018-06-22 19:42:53 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Load user customized intents
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="agent"></param>
|
2018-08-15 10:46:53 +00:00
|
|
|
|
void LoadIntents(Agent agent);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Add entities that labeled in intent.UserSays into user customized entity dictionary
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="agent"></param>
|
|
|
|
|
|
void LoadBuildinEntities(Agent agent);
|
2018-06-22 19:42:53 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-08-15 10:46:53 +00:00
|
|
|
|
/// generate training data
|
2018-06-22 19:42:53 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="agent"></param>
|
2018-08-15 10:46:53 +00:00
|
|
|
|
void AssembleTrainData(Agent agent);
|
2018-03-21 21:07:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|