From b7975257fe0a5ca36c39c4f17b481b23ebafd84a Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Tue, 19 Feb 2019 07:07:04 -0600 Subject: [PATCH] upgrade dependent libraries. --- .../BotSharp.Channel.FacebookMessenger.csproj | 2 +- .../BotSharp.Channel.Weixin.csproj | 4 +- .../Controllers/WeixinAsyncController.cs | 7 +- BotSharp.Core/BotSharp.Core.csproj | 10 +- .../BotSharp.Platform.Dialogflow.csproj | 2 +- .../BotSharp.Platform.Rasa.csproj | 2 +- README.rst => README.md | 84 ++++---------- README_zh.rst | 105 ------------------ 8 files changed, 31 insertions(+), 185 deletions(-) rename README.rst => README.md (63%) delete mode 100644 README_zh.rst diff --git a/BotSharp.Channel.FacebookMessenger/BotSharp.Channel.FacebookMessenger.csproj b/BotSharp.Channel.FacebookMessenger/BotSharp.Channel.FacebookMessenger.csproj index 4f65598c..0d628ef2 100644 --- a/BotSharp.Channel.FacebookMessenger/BotSharp.Channel.FacebookMessenger.csproj +++ b/BotSharp.Channel.FacebookMessenger/BotSharp.Channel.FacebookMessenger.csproj @@ -9,7 +9,7 @@ - + diff --git a/BotSharp.Channel.Weixin/BotSharp.Channel.Weixin.csproj b/BotSharp.Channel.Weixin/BotSharp.Channel.Weixin.csproj index ee2f53e7..74109423 100644 --- a/BotSharp.Channel.Weixin/BotSharp.Channel.Weixin.csproj +++ b/BotSharp.Channel.Weixin/BotSharp.Channel.Weixin.csproj @@ -19,8 +19,8 @@ - - + + diff --git a/BotSharp.Channel.Weixin/Controllers/WeixinAsyncController.cs b/BotSharp.Channel.Weixin/Controllers/WeixinAsyncController.cs index 2139efec..c099255c 100644 --- a/BotSharp.Channel.Weixin/Controllers/WeixinAsyncController.cs +++ b/BotSharp.Channel.Weixin/Controllers/WeixinAsyncController.cs @@ -1,19 +1,14 @@ using BotSharp.Channel.Weixin.Models; using BotSharp.Platform.Abstraction; -using BotSharp.Platform.Dialogflow; using BotSharp.Platform.Dialogflow.Models; -using BotSharp.Platform.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; -using Senparc.CO2NET; using Senparc.CO2NET.HttpUtility; using Senparc.Weixin.MP; using Senparc.Weixin.MP.Entities.Request; using Senparc.Weixin.MP.MvcExtension; using System; -using System.Collections.Generic; using System.IO; -using System.Text; using System.Threading.Tasks; namespace BotSharp.Channel.Weixin.Controllers @@ -107,7 +102,7 @@ namespace BotSharp.Channel.Weixin.Controllers #endregion - await messageHandler.ExecuteAsync(); //执行微信处理过程 + await messageHandler.ExecuteAsync(new System.Threading.CancellationToken()); //执行微信处理过程 #region 记录 Response 日志 diff --git a/BotSharp.Core/BotSharp.Core.csproj b/BotSharp.Core/BotSharp.Core.csproj index dc5a9c8e..6b8b2b0b 100644 --- a/BotSharp.Core/BotSharp.Core.csproj +++ b/BotSharp.Core/BotSharp.Core.csproj @@ -72,17 +72,17 @@ If you feel that this project is helpful to you, please Star on the project, we - - + + - + - + - + diff --git a/BotSharp.Platform.Dialogflow/BotSharp.Platform.Dialogflow.csproj b/BotSharp.Platform.Dialogflow/BotSharp.Platform.Dialogflow.csproj index ebce181f..6ee737f4 100644 --- a/BotSharp.Platform.Dialogflow/BotSharp.Platform.Dialogflow.csproj +++ b/BotSharp.Platform.Dialogflow/BotSharp.Platform.Dialogflow.csproj @@ -18,7 +18,7 @@ - + diff --git a/BotSharp.Platform.Rasa/BotSharp.Platform.Rasa.csproj b/BotSharp.Platform.Rasa/BotSharp.Platform.Rasa.csproj index 58d8da7c..f2b44ce8 100644 --- a/BotSharp.Platform.Rasa/BotSharp.Platform.Rasa.csproj +++ b/BotSharp.Platform.Rasa/BotSharp.Platform.Rasa.csproj @@ -5,7 +5,7 @@ - + diff --git a/README.rst b/README.md similarity index 63% rename from README.rst rename to README.md index d273ae35..336f10ba 100644 --- a/README.rst +++ b/README.md @@ -1,45 +1,20 @@ -The Open Source AI Chatbot Platform Builder -====================================================== - -.. image:: https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg - :target: `gitter`_ - :alt: gitter - :align: left - -.. image:: https://img.shields.io/hexpm/l/plug.svg - :target: `license`_ - :alt: Hex.pm - :align: left - -.. image:: https://img.shields.io/nuget/dt/BotSharp.Core.svg - :target: `botsharpnuget`_ - :alt: NuGet - :align: left - -.. image:: https://ci.appveyor.com/api/projects/status/kar0mxwbnu8rbwkm?svg=true - :align: left - -.. image:: https://img.shields.io/badge/member%20project%20of-NCC-9e20c9.svg - :target: `ncc`_ - :alt: Member project of .NET Core Community +# The Open Source AI Chatbot Platform Builder +[![Join the chat at https://gitter.im/publiclab/publiclab](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sci-sharp/community)[![Apache 2.0](https://img.shields.io/hexpm/l/plug.svg)](https://raw.githubusercontent.com/Oceania2018/BotSharp/master/LICENSE)[![NuGet](https://img.shields.io/nuget/dt/BotSharp.Core.svg)](https://www.nuget.org/packages/BotSharp.Core)[![Appveyor](https://ci.appveyor.com/api/projects/status/kar0mxwbnu8rbwkm?svg=true)](https://www.nuget.org/packages/BotSharp.Core) *"Conversation as a platform (CaaP) is the future, so it's perfect that we're already offering the whole toolkits to our .NET developers using the BotSharp AI BOT Platform Builder to build a CaaP. It opens up as much learning power as possible for your own robots and precisely control every step of the AI processing pipeline."* **BotSharp** is an open source machine learning framework for AI Bot platform builder. This project involves natural language understanding, computer vision and audio processing technologies, and aims to promote the development and application of intelligent robot assistants in information systems. Out-of-the-box machine learning algorithms allow ordinary programmers to develop artificial intelligence applications faster and easier. -.. raw:: html + - - It's witten in C# running on .Net Core that is full cross-platform framework. C# is a enterprise grade programming language which is widely used to code business logic in information management related system. More friendly to corporate developers. BotSharp adopts machine learning algrithm in C# directly. That will facilitate the feature of the typed language C#, and be more easier when refactoring code in system scope. Why we do this? because we all know python is not friendly programming language for enterprise developers, it's not only because it's low performance but also it's a type weak language, it will be a disater if you use python to build your bussiness system. BotSharp is in accordance with components princple strictly, decouples every part that needed in the platform builder. So you can choose different UI/UX, or pick up a different NLP Tagger, or select a more advanced algrithm to do NER task. They are all modulized based an unfied interfaces. -Some Features -------------- +### Some Features * Integrated debugging is easier without relying on any other machine learning algorithm libraries. * Built-in multi-Agents management, easy to build Bot as a Service platform. @@ -47,67 +22,48 @@ Some Features * Use the natural language processing pipeline mechanism to work with extensions easily, and build your own unique robot processing flows. * Rewrote NLP algorithm from ground without historical issues. * Support export/ import agent from other bot platforms directly. -* Support different UI providers like `Rasa UI`_ and `Articulate UI`_. +* Support different UI providers like `Rasa UI` and `Articulate UI`. * Support for multiple data request and response formats such as Rasa NLU and Dialogflow. * Integrate with popular social platforms like Facebook Messenger, Slack and Telegram. * Multi-core parallel computing optimization, High-Performance C# on GPUs in Hybridizer. -Quick Started -------------- +### Quick Started + * Make sure that you have downloaded the related components. * See the file "BotSharp\BotSharp.WebHost\Settings\app.json",change the path to your own project's path. * Select dialogflow or articulate to make it work. You can use docker compose to run BotSharp quickly, make sure you've got `Docker`_ installed. -:: +```sh PS D:\> git clone https://github.com/dotnetcore/BotSharp PS D:\> cd BotSharp PS D:\BotSharp\> docker-compose -f dockerfiles/docker-compose-core.yml up +``` Point your web browser at http://localhost:3112 and enjoy BotSharp Core. -Extension Libraries ------------------ +### Extension Libraries + BotSharp uses component design, the kernel is kept to a minimum, and business functions are implemented by external components. The modular design also allows contributors to better participate. -* BotSharp platform emulator extension which is compatible with RASA NLU. `botsharp-rasa`_ +* BotSharp platform emulator extension which is compatible with RASA NLU. * BotSharp platform emulator extension which is compatible with Google Dialogflow. -* BotSharp platform emulator extension which is compatible with Articulate AI. `botsharp-articulate`_ -* BotSharp platform emulator extension which is compatible with RasaTalk. `botsharp-rasatalk`_ +* BotSharp platform emulator extension which is compatible with Articulate AI. +* BotSharp platform emulator extension which is compatible with RasaTalk. * A channel module of BotSharp for Facebook Messenger. * A channel module of BotSharp for Tencent Wechat. * A channel module of BotSharp for Telegram. -* Articulate UI customized for BotSharp NLU. `articulate-ui`_ +* Articulate UI customized for BotSharp NLU. + +### Documents -Documents ---------- Read the docs: https://botsharp.readthedocs.io -Feel free to message me on - -.. image:: https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg - :target: `gitter`_ - If you feel that this project is helpful to you, please Star the project, we would be very grateful. -Powered by `SciSharp`_ which is the .NET based ecosystem of open-source software for mathematics, science, and engineering. +Powered by [SciSharp STACK](https://github.com/SciSharp) which is the .NET based ecosystem of open-source software for mathematics, science, and engineering. -Scan to join group in Wechat +Scan QR code to join TIM group: -.. raw:: html - - - -.. _Docker: https://www.docker.com -.. _Rasa UI: https://github.com/paschmann/rasa-ui -.. _Articulate UI: https://github.com/Oceania2018/articulate-ui -.. _gitter: https://gitter.im/botsharpcore/Lobby -.. _license: https://raw.githubusercontent.com/Oceania2018/BotSharp/master/LICENSE -.. _botsharpnuget: https://www.nuget.org/packages/BotSharp.Core -.. _botsharp-rasa: https://github.com/Oceania2018/botsharp-rasa -.. _botsharp-articulate: https://github.com/Oceania2018/botsharp-articulate -.. _botsharp-rasatalk: https://github.com/Obrain2016/botsharp-rasatalk -.. _articulate-ui: https://github.com/Oceania2018/articulate-ui -.. _SciSharp: https://github.com/SciSharp -.. _ncc: https://github.com/dotnetcore +![SciSharp STACK](https://raw.githubusercontent.com/SciSharp/TensorFlow.NET/master/docs/TIM.png) \ No newline at end of file diff --git a/README_zh.rst b/README_zh.rst deleted file mode 100644 index 61dda5bc..00000000 --- a/README_zh.rst +++ /dev/null @@ -1,105 +0,0 @@ -开源人工智能聊天机器人平台构建框架 -=============================== - -.. image:: https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg - :target: `gitter`_ - :alt: gitter - :align: left - -.. image:: https://img.shields.io/hexpm/l/plug.svg - :target: `license`_ - :alt: Hex.pm - :align: left - -.. image:: https://img.shields.io/nuget/dt/EntityFrameworkCore.BootKit.svg - :target: `botsharpnuget`_ - :alt: NuGet - :align: left - -.. image:: https://ci.appveyor.com/api/projects/status/kar0mxwbnu8rbwkm?svg=true - - -*"Conversation as a platform (CaaP) is the future, so it's perfect that we're already offering the whole toolkits to our .NET developers using the BotSharp AI BOT Platform Builder to build a CaaP. It opens up as much learning power as possible for your own robots and precisely control every step of the AI processing pipeline."* - -**BotSharp** is an open source machine learning framework for AI Bot platform builder. This project involves natural language understanding, computer vision and audio processing technologies, and aims to promote the development and application of intelligent robot assistants in information systems. Out-of-the-box machine learning algorithms allow ordinary programmers to develop artificial intelligence applications faster and easier. - -.. raw:: html - - - -It's witten in C# running on .Net Core that is full cross-platform framework. C# is a enterprise grade programming language which is widely used to code business logic in information management related system. More friendly to corporate developers. BotSharp adopts machine learning algrithm in C# directly. That will facilitate the feature of the typed language C#, and be more easier when refactoring code in system scope. - -Why we do this? because we all know python is not friendly programming language for enterprise developers, it's not only because it's low performance but also it's a type weak language, it will be a disater if you use python to build your bussiness system. - -BotSharp is in accordance with components princple strictly, decouples every part that needed in the platform builder. So you can choose different UI/UX, or pick up a different NLP Tagger, or select a more advanced algrithm to do NER task. They are all modulized based an unfied interfaces. - -Some Features -------------- - -* Integrated debugging is easier without relying on any other machine learning algorithm libraries. -* Built-in multi-Agents management, easy to build Bot as a Service platform. -* Context In/ Out with lifespan to make conversion flow be controllable. -* Use the natural language processing pipeline mechanism to work with extensions easily, and build your own unique robot processing flows. -* Rewrote NLP algorithm from ground without historical issues. -* Support export/ import agent from other bot platforms directly. -* Support different UI providers like `Rasa UI`_ and `Articulate UI`_. -* Support for multiple data request and response formats such as Rasa NLU and Dialogflow. -* Integrate with popular social platforms like Facebook Messenger, Slack and Telegram. -* Multi-core parallel computing optimization, High-Performance C# on GPUs in Hybridizer. - -Quick Started -------------- -You can use docker compose to run BotSharp quickly, make sure you've got `Docker`_ installed. -:: - - PS D:\> git clone https://github.com/Oceania2018/BotSharp - PS D:\> cd BotSharp - PS D:\BotSharp\> docker-compose -f dockerfiles/docker-compose-articulateui.yml up - -Point your web browser at http://localhost:3000 and enjoy BotSharp with Articulate-UI. - -Extension Libraries ------------------ -BotSharp uses component design, the kernel is kept to a minimum, and business functions are implemented by external components. The modular design also allows contributors to better participate. - -* BotSharp platform emulator extension which is compatible with RASA NLU. `botsharp-rasa`_ -* BotSharp platform emulator extension which is compatible with Google Dialogflow. `botsharp-dialogflow`_ -* BotSharp platform emulator extension which is compatible with Articulate AI. `botsharp-articulate`_ -* BotSharp platform emulator extension which is compatible with RasaTalk. `botsharp-rasatalk`_ -* A channel module of BotSharp for Facebook Messenger. `botsharp-channel-fbmessenger`_ -* A channel module of BotSharp for Tencent Wechat. `botsharp-channel-weixin`_ -* A channel module of BotSharp for Telegram. `botsharp-channel-telegram`_ -* Articulate UI customized for BotSharp NLU. `articulate-ui`_ - -Documents ---------- -Read the docs: https://botsharp.readthedocs.io - -Feel free to message me on - -.. image:: https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg - :target: `gitter`_ - -If you feel that this project is helpful to you, please Star on the project, we will be very grateful. - -Scan to join group in Wechat - -.. raw:: html - - - -.. _Docker: https://www.docker.com -.. _Rasa UI: https://github.com/paschmann/rasa-ui -.. _Articulate UI: https://github.com/Oceania2018/articulate-ui -.. _gitter: https://gitter.im/botsharpcore/Lobby -.. _license: https://raw.githubusercontent.com/Oceania2018/BotSharp/master/LICENSE -.. _botsharpnuget: https://www.nuget.org/packages/BotSharp.Core -.. _botsharp-rasa: https://github.com/Oceania2018/botsharp-rasa -.. _botsharp-dialogflow: https://github.com/Oceania2018/botsharp-dialogflow -.. _botsharp-articulate: https://github.com/Oceania2018/botsharp-articulate -.. _botsharp-rasatalk: https://github.com/Obrain2016/botsharp-rasatalk -.. _botsharp-channel-fbmessenger: https://github.com/Oceania2018/botsharp-channel-fbmessenger -.. _botsharp-channel-weixin: https://github.com/Oceania2018/botsharp-channel-weixin -.. _botsharp-channel-telegram: https://github.com/Oceania2018/botsharp-channel-telegram -.. _articulate-ui: https://github.com/Oceania2018/articulate-ui -