diff --git a/BotSharp.MachineLearning/SpaCy/Dockerfile b/BotSharp.MachineLearning/SpaCy/Dockerfile new file mode 100644 index 00000000..0edae9af --- /dev/null +++ b/BotSharp.MachineLearning/SpaCy/Dockerfile @@ -0,0 +1,21 @@ +FROM debian +WORKDIR /source + +# upgrade linux +RUN apt-get update +#RUN apt-get -y upgrade + +# install python pip3 +RUN apt-get install -y python-pip + +# install spaCy +RUN pip install -U spacy +RUN python -m spacy download en_core_web_md +RUN python -m spacy link en_core_web_md en + +# install bottle +RUN pip install bottle + +COPY --from=botsharp /source/BotSharp.MachineLearning/SpaCy/ . + +ENTRYPOINT [ "python", "server.py" ] \ No newline at end of file diff --git a/BotSharp.MachineLearning/SpaCy/README.md b/BotSharp.MachineLearning/SpaCy/README.md new file mode 100644 index 00000000..ece50680 --- /dev/null +++ b/BotSharp.MachineLearning/SpaCy/README.md @@ -0,0 +1,8 @@ +``` +PS D:\> cd D:\BotSharp\BotSharp.MachineLearning\SpaCy +PS D:\BotSharp\BotSharp.MachineLearning\SpaCy> docker build -t spacy . +docker run -it -p 5005:5005 spacy +``` +``` +PS D:\BotSharp\> docker exec -it CONTAINER_ID bash +``` \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 03a9c1a7..be1951c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,12 @@ # stage 1: build -FROM microsoft/aspnetcore-build AS builder +FROM microsoft/dotnet AS botsharp WORKDIR /source - # copies the rest of your code +# copies the rest of your code COPY . . RUN dotnet build -RUN dotnet publish --output /app/ --configuration Release +RUN dotnet publish --output /app/ --configuration Debug -# stage 2: install -FROM microsoft/aspnetcore +# stage 2: run WORKDIR /app -COPY --from=builder /app . ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ] \ No newline at end of file diff --git a/README.md b/README.md index 5a34fd05..0c764355 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # ### The Open Source AI Chatbot Platform Builder for Enterprise -### **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 enterprise information systems. Out-of-the-box machine learning algorithms allow ordinary programmers to develop artificial intelligence applications faster and easier. @@ -11,23 +10,35 @@ Why we do this? because we all know python is not friendly programming language 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 -* Multiple agents management +* Built-in multi-Agents management, easy to build Bot as a Service platform. * Context In/ Out with lifespan to make conversion flow be controllable. -* Support Rasa, Dialogflow and many others as a bot platform builder components. +* Use the natural language processing pipeline mechanism and the popular NLP algorithm library to build your own unique robot processing flow. * Support export/ import agent from other bot platforms directly. -* Support different UI providers. -* With a Rest API interfaces. -* Integrate with popular social platforms. +* Support different UI providers like [Rasa UI](https://github.com/paschmann/rasa-ui) and [Articulate UI](https://spg.ai/projects/articulate/). +* 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. -### How to Install +### Documents +https://github.com/Oceania2018/BotSharp/wiki + +## QUICK START +### Install in docker container +Make sure you've got [Docker](https://www.docker.com/) installed: +``` +PS D:\> git clone https://github.com/Oceania2018/BotSharp +PS D:\> cd BotSharp +``` +``` +PS D:\BotSharp\> docker build -t botsharp . +PS D:\BotSharp\> docker run -it -p 3112:3112 botsharp +``` + +### Install in NuGet ````shell PM> Install-Package BotSharp.Core PM> Install-Package BotSharp.RestApi ```` -### Documents -https://github.com/Oceania2018/BotSharp/wiki - #### Tip Jar * **Ethereum**