BotSharp/Bot.Rasa/Adapters/Dialogflow/DialogflowEntityEntry.cs
haiping008@gmail.com 33d42ae035 1. Added context in/ out, lifespan.
2. Import agent in Dialogflow format.
3. Lazy training per input contexts.
2018-03-21 16:07:43 -05:00

33 lines
725 B
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace Bot.Rasa.Adapters.Dialogflow
{
[JsonObject]
public class DialogflowEntityEntry
{
[JsonProperty("value")]
public string Value { get; set; }
[JsonProperty("synonyms")]
public List<String> Synonyms { get; set; }
public DialogflowEntityEntry()
{
}
public DialogflowEntityEntry(string value, List<string> synonyms)
{
this.Value = value;
this.Synonyms = synonyms;
}
public DialogflowEntityEntry(string value, string[] synonyms) : this(value, new List<string>(synonyms))
{
}
}
}