diff --git a/.gitignore b/.gitignore
index d61438e2..b79b8e34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,7 +5,6 @@
# User-specific files
*.suo
-*.user
*.userosscache
*.sln.docstates
@@ -46,7 +45,6 @@ dlldata.c
project.lock.json
project.fragment.lock.json
artifacts/
-**/Properties/launchSettings.json
*_i.c
*_p.c
@@ -150,7 +148,6 @@ publish/
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
-*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
diff --git a/BotSharp.Algorithm/BotSharp.Algorithm.csproj b/BotSharp.Algorithm/BotSharp.Algorithm.csproj
index a5c5191c..246b0a3f 100644
--- a/BotSharp.Algorithm/BotSharp.Algorithm.csproj
+++ b/BotSharp.Algorithm/BotSharp.Algorithm.csproj
@@ -14,4 +14,8 @@
MIT
+
+ bin\RASA
+
+
diff --git a/BotSharp.WebHost/BotSharp.WebHost.csproj b/BotSharp.WebHost/BotSharp.WebHost.csproj
index 41879116..a46d91fe 100644
--- a/BotSharp.WebHost/BotSharp.WebHost.csproj
+++ b/BotSharp.WebHost/BotSharp.WebHost.csproj
@@ -11,6 +11,10 @@
TRACE;DEBUG
+
+ TRACE
+
+
@@ -38,7 +42,9 @@
-
+
+ PreserveNewest
+
@@ -60,4 +66,16 @@
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+
diff --git a/BotSharp.WebHost/BotSharp.WebHost.csproj.user b/BotSharp.WebHost/BotSharp.WebHost.csproj.user
new file mode 100644
index 00000000..8e15de60
--- /dev/null
+++ b/BotSharp.WebHost/BotSharp.WebHost.csproj.user
@@ -0,0 +1,10 @@
+
+
+
+ BotSharp.WebHost
+ RASA
+
+
+ ProjectDebugger
+
+
\ No newline at end of file
diff --git a/BotSharp.WebHost/Properties/PublishProfiles/RASA.pubxml b/BotSharp.WebHost/Properties/PublishProfiles/RASA.pubxml
new file mode 100644
index 00000000..543b973e
--- /dev/null
+++ b/BotSharp.WebHost/Properties/PublishProfiles/RASA.pubxml
@@ -0,0 +1,22 @@
+
+
+
+
+ FileSystem
+ FileSystem
+ RASA
+ Any CPU
+
+ True
+ False
+ netcoreapp2.1
+ 03dca427-327a-4fc9-9a2f-57d17f16708c
+ false
+ <_IsPortable>true
+ PublishOutput
+ True
+
+
\ No newline at end of file
diff --git a/BotSharp.WebHost/Properties/PublishProfiles/RASA.pubxml.user b/BotSharp.WebHost/Properties/PublishProfiles/RASA.pubxml.user
new file mode 100644
index 00000000..86910c09
--- /dev/null
+++ b/BotSharp.WebHost/Properties/PublishProfiles/RASA.pubxml.user
@@ -0,0 +1,11 @@
+
+
+
+
+
+ <_PublishTargetUrl>D:\Projects\BotSharp\BotSharp.WebHost\PublishOutput
+
+
\ No newline at end of file
diff --git a/BotSharp.WebHost/Properties/launchSettings.json b/BotSharp.WebHost/Properties/launchSettings.json
new file mode 100644
index 00000000..ecb75fb4
--- /dev/null
+++ b/BotSharp.WebHost/Properties/launchSettings.json
@@ -0,0 +1,27 @@
+{
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:3112/",
+ "sslPort": 0
+ }
+ },
+ "profiles": {
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "BotSharp.WebHost": {
+ "commandName": "Project",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ },
+ "applicationUrl": "http://localhost:3112/"
+ }
+ }
+}
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index 9da2a29c..8cb96e19 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,14 +5,16 @@ WORKDIR /source
# copies the rest of your code
COPY . .
RUN dotnet build
-RUN dotnet publish --output /app --configuration RASA
+RUN dotnet publish /p:PublishProfile=RASA /p:Configuration=RASA --output /app
# copy Settings folder
-COPY Settings /app/Settings
+WORKDIR /app
+COPY Settings Settings
+RUN mkdir App_Data/Projects
-# App_Data
-COPY BotSharp.WebHost/App_Data /app/App_Data
+# move data for jieba.NetCore
+# RUN mv App_Data/Resources Resources
+# RUN mv App_Data/userdict.txt userdict.txt
# stage 2: run
-WORKDIR /app
ENTRYPOINT [ "dotnet", "BotSharp.WebHost.dll" ]
diff --git a/Settings/bot.json b/Settings/bot.json
index c073be48..b3119328 100644
--- a/Settings/bot.json
+++ b/Settings/bot.json
@@ -12,7 +12,7 @@
},
"BotSharpTokenizer": {
- "tokenizer": "JiebaTokenizer"
+ "tokenizer": "TreebankTokenizer"
},
"BotSharpNBayesClassifier": {
@@ -23,7 +23,7 @@
},
"BotSharpTagger": {
- "tagger": "JiebaTagger"
+ "tagger": "NGramTagger"
},
"BotSharpCRFNer": {