diff --git a/BotSharp.Core/BotSharp.Core.csproj b/BotSharp.Core/BotSharp.Core.csproj
index 0d8a8e26..34d02201 100644
--- a/BotSharp.Core/BotSharp.Core.csproj
+++ b/BotSharp.Core/BotSharp.Core.csproj
@@ -12,16 +12,18 @@
true
Haiping Chen
- BotSharp.Core
- Open source chatbot platform written in C#. Ready for enterprise.
+ BotSharp Chabot Platform
+ Open source chatbot platform which is written in C# runs on .Net Core and is enterprise oriented. Integrated with multiple bot engines besides BotSharp bot engine. Modulized pipeline design make NLP tasks plugin easily. Abstract platform and NLP task, migrate existed chatbot from a platform into another platform perfectly through dump and restore.
MIT
https://github.com/Oceania2018/BotSharp
NLU, Chatbot, Bot, AI Bot
- 1.3.0
+ 1.4.0
Add NLP pipeline. Support training model by input context.
Since 2018 Haiping Chen
https://github.com/Oceania2018/BotSharp
- 1.3.0.0
+ 1.4.0.0
+ https://raw.githubusercontent.com/Oceania2018/BotSharp/master/BotSharp.WebHost/wwwroot/images/BotSharp.png
+ https://github.com/Oceania2018/BotSharp/blob/master/LICENSE
@@ -43,4 +45,8 @@
+
+
+
+
diff --git a/BotSharp.Core/Engines/SpaCy/SpaCyEntitizer.cs b/BotSharp.Core/Engines/SpaCy/SpaCyEntitizer.cs
index 4862bb82..23a596fe 100644
--- a/BotSharp.Core/Engines/SpaCy/SpaCyEntitizer.cs
+++ b/BotSharp.Core/Engines/SpaCy/SpaCyEntitizer.cs
@@ -4,6 +4,7 @@ using System.Text;
using BotSharp.Core.Abstractions;
using BotSharp.Core.Agents;
using BotSharp.Core.Models;
+using BotSharp.MachineLearning.NLP;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json.Linq;
using RestSharp;
diff --git a/BotSharp.Core/Engines/SpaCy/SpaCyTokenizer.cs b/BotSharp.Core/Engines/SpaCy/SpaCyTokenizer.cs
index 0fc22991..ed4d276c 100644
--- a/BotSharp.Core/Engines/SpaCy/SpaCyTokenizer.cs
+++ b/BotSharp.Core/Engines/SpaCy/SpaCyTokenizer.cs
@@ -1,6 +1,7 @@
using BotSharp.Core.Abstractions;
using BotSharp.Core.Agents;
using BotSharp.Core.Models;
+using BotSharp.MachineLearning.NLP;
using EntityFrameworkCore.BootKit;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json.Linq;
diff --git a/BotSharp.MachineLearning/BotSharp.MachineLearning.csproj b/BotSharp.MachineLearning/BotSharp.MachineLearning.csproj
new file mode 100644
index 00000000..86ea3bbe
--- /dev/null
+++ b/BotSharp.MachineLearning/BotSharp.MachineLearning.csproj
@@ -0,0 +1,7 @@
+
+
+
+ netcoreapp2.1
+
+
+
diff --git a/BotSharp.Core/Engines/CRFsuite/Attribute.cs b/BotSharp.MachineLearning/CRFsuite/Attribute.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/Attribute.cs
rename to BotSharp.MachineLearning/CRFsuite/Attribute.cs
diff --git a/BotSharp.Core/Engines/CRFsuite/Item.cs b/BotSharp.MachineLearning/CRFsuite/Item.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/Item.cs
rename to BotSharp.MachineLearning/CRFsuite/Item.cs
diff --git a/BotSharp.Core/Engines/CRFsuite/ItemSequence.cs b/BotSharp.MachineLearning/CRFsuite/ItemSequence.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/ItemSequence.cs
rename to BotSharp.MachineLearning/CRFsuite/ItemSequence.cs
diff --git a/BotSharp.Core/Engines/CRFsuite/SWIGTYPE_p_void.cs b/BotSharp.MachineLearning/CRFsuite/SWIGTYPE_p_void.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/SWIGTYPE_p_void.cs
rename to BotSharp.MachineLearning/CRFsuite/SWIGTYPE_p_void.cs
diff --git a/BotSharp.Core/Engines/CRFsuite/StringList.cs b/BotSharp.MachineLearning/CRFsuite/StringList.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/StringList.cs
rename to BotSharp.MachineLearning/CRFsuite/StringList.cs
diff --git a/BotSharp.Core/Engines/CRFsuite/Tagger.cs b/BotSharp.MachineLearning/CRFsuite/Tagger.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/Tagger.cs
rename to BotSharp.MachineLearning/CRFsuite/Tagger.cs
diff --git a/BotSharp.Core/Engines/CRFsuite/Trainer.cs b/BotSharp.MachineLearning/CRFsuite/Trainer.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/Trainer.cs
rename to BotSharp.MachineLearning/CRFsuite/Trainer.cs
diff --git a/BotSharp.Core/Engines/CRFsuite/crfsuite.cs b/BotSharp.MachineLearning/CRFsuite/crfsuite.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/crfsuite.cs
rename to BotSharp.MachineLearning/CRFsuite/crfsuite.cs
diff --git a/BotSharp.Core/Engines/CRFsuite/crfsuitePINVOKE.cs b/BotSharp.MachineLearning/CRFsuite/crfsuitePINVOKE.cs
similarity index 100%
rename from BotSharp.Core/Engines/CRFsuite/crfsuitePINVOKE.cs
rename to BotSharp.MachineLearning/CRFsuite/crfsuitePINVOKE.cs
diff --git a/BotSharp.Core/NLP/NlpEntity.cs b/BotSharp.MachineLearning/NLP/NlpEntity.cs
similarity index 91%
rename from BotSharp.Core/NLP/NlpEntity.cs
rename to BotSharp.MachineLearning/NLP/NlpEntity.cs
index 93a36efd..a3928b88 100644
--- a/BotSharp.Core/NLP/NlpEntity.cs
+++ b/BotSharp.MachineLearning/NLP/NlpEntity.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
-namespace BotSharp.Core.Models
+namespace BotSharp.MachineLearning.NLP
{
public class NlpEntity
{
diff --git a/BotSharp.Core/NLP/NlpToken.cs b/BotSharp.MachineLearning/NLP/NlpToken.cs
similarity index 89%
rename from BotSharp.Core/NLP/NlpToken.cs
rename to BotSharp.MachineLearning/NLP/NlpToken.cs
index 40518011..fdd3613f 100644
--- a/BotSharp.Core/NLP/NlpToken.cs
+++ b/BotSharp.MachineLearning/NLP/NlpToken.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
-namespace BotSharp.Core.Models
+namespace BotSharp.MachineLearning.NLP
{
public class NlpToken
{
diff --git a/BotSharp.RestApi/FacebookMessengerController.cs b/BotSharp.RestApi/FacebookMessengerController.cs
new file mode 100644
index 00000000..c01d3d4c
--- /dev/null
+++ b/BotSharp.RestApi/FacebookMessengerController.cs
@@ -0,0 +1,17 @@
+using Microsoft.AspNetCore.Mvc;
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace BotSharp.RestApi
+{
+ [Route("v1/[controller]/[action]")]
+ public class FacebookMessengerController : ControllerBase
+ {
+ [HttpGet]
+ public void Facebook()
+ {
+
+ }
+ }
+}
diff --git a/BotSharp.WebHost/App_Data/DbInitializer/Agents/agents.json b/BotSharp.WebHost/App_Data/DbInitializer/Agents/agents.json
index 3c5ab50a..4793960a 100644
--- a/BotSharp.WebHost/App_Data/DbInitializer/Agents/agents.json
+++ b/BotSharp.WebHost/App_Data/DbInitializer/Agents/agents.json
@@ -4,6 +4,13 @@
"Name": "Spotify",
"UserId": "8da9e1e0-42dc-420a-8016-79b04c1297d0",
"ClientAccessToken": "43a0f48e3f1e41da822092e7e699426b",
- "DeveloperAccessToken": "cd1e4685c6a04d7db1f59e6853fd597b"
+ "DeveloperAccessToken": "cd1e4685c6a04d7db1f59e6853fd597b",
+ "Integrations":
+ [
+ {
+ "Platform": "FacebookMessenger",
+ "PageAccessToken": "EAAJym8gGQFMBAPnsxTw6rZBE2WVfYtCJeGkCQ2NZC3VbQd45SyUlXjjgUf1gAkCOWq7v0blxTb1xLZAeMAXYhQj3btcMlMO9YbG7StMyx8ussz5TnD1tjjIZCye5u66PZAuFxSyIPXtTCin8GPiJ19cYB8ZCyH3rr5sro7OxUSyAZDZD"
+ }
+ ]
}
]
\ No newline at end of file
diff --git a/BotSharp.sln b/BotSharp.sln
index eb99c20b..c4a7b664 100644
--- a/BotSharp.sln
+++ b/BotSharp.sln
@@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BotSharp.RestApi", "BotShar
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BotSharp.WebHost", "BotSharp.WebHost\BotSharp.WebHost.csproj", "{03DCA427-327A-4FC9-9A2F-57D17F16708C}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotSharp.MachineLearning", "BotSharp.MachineLearning\BotSharp.MachineLearning.csproj", "{E664115A-AE86-49E9-8AE4-D4589A568CD7}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -33,6 +35,10 @@ Global
{03DCA427-327A-4FC9-9A2F-57D17F16708C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03DCA427-327A-4FC9-9A2F-57D17F16708C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03DCA427-327A-4FC9-9A2F-57D17F16708C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E664115A-AE86-49E9-8AE4-D4589A568CD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E664115A-AE86-49E9-8AE4-D4589A568CD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E664115A-AE86-49E9-8AE4-D4589A568CD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E664115A-AE86-49E9-8AE4-D4589A568CD7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE