update botsharp dockerfile and add spaCy dockerfile.
This commit is contained in:
parent
343a300680
commit
122b5bad71
21
BotSharp.MachineLearning/SpaCy/Dockerfile
Normal file
21
BotSharp.MachineLearning/SpaCy/Dockerfile
Normal file
|
|
@ -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" ]
|
||||||
8
BotSharp.MachineLearning/SpaCy/README.md
Normal file
8
BotSharp.MachineLearning/SpaCy/README.md
Normal file
|
|
@ -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
|
||||||
|
```
|
||||||
10
Dockerfile
10
Dockerfile
|
|
@ -1,14 +1,12 @@
|
||||||
# stage 1: build
|
# stage 1: build
|
||||||
FROM microsoft/aspnetcore-build AS builder
|
FROM microsoft/dotnet AS botsharp
|
||||||
WORKDIR /source
|
WORKDIR /source
|
||||||
|
|
||||||
# copies the rest of your code
|
# copies the rest of your code
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet build
|
RUN dotnet build
|
||||||
RUN dotnet publish --output /app/ --configuration Release
|
RUN dotnet publish --output /app/ --configuration Debug
|
||||||
|
|
||||||
# stage 2: install
|
# stage 2: run
|
||||||
FROM microsoft/aspnetcore
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app .
|
|
||||||
ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ]
|
ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ]
|
||||||
31
README.md
31
README.md
|
|
@ -1,6 +1,5 @@
|
||||||
# <img src="https://raw.githubusercontent.com/Oceania2018/BotSharp/master/BotSharp.WebHost/wwwroot/images/BotSharp.png" height="30">
|
# <img src="https://raw.githubusercontent.com/Oceania2018/BotSharp/master/BotSharp.WebHost/wwwroot/images/BotSharp.png" height="30">
|
||||||
### The Open Source AI Chatbot Platform Builder for Enterprise
|
### 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.
|
**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.
|
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
|
||||||
* 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.
|
* 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 export/ import agent from other bot platforms directly.
|
||||||
* Support different UI providers.
|
* Support different UI providers like [Rasa UI](https://github.com/paschmann/rasa-ui) and [Articulate UI](https://spg.ai/projects/articulate/).
|
||||||
* With a Rest API interfaces.
|
* Support for multiple data request and response formats such as Rasa NLU and Dialogflow.
|
||||||
* Integrate with popular social platforms.
|
* 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
|
````shell
|
||||||
PM> Install-Package BotSharp.Core
|
PM> Install-Package BotSharp.Core
|
||||||
PM> Install-Package BotSharp.RestApi
|
PM> Install-Package BotSharp.RestApi
|
||||||
````
|
````
|
||||||
|
|
||||||
### Documents
|
|
||||||
https://github.com/Oceania2018/BotSharp/wiki
|
|
||||||
|
|
||||||
|
|
||||||
#### Tip Jar
|
#### Tip Jar
|
||||||
* **Ethereum**
|
* **Ethereum**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue