Merge remote-tracking branch 'origin/dev_2.1.0' into dev_2.1.0
commit
0787aa89c4
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 启动text2vec服务
|
||||
source /root/anaconda3/etc/profile.d/conda.sh && \
|
||||
conda activate text2vec_env && \
|
||||
nohup python /usr/local/text2vec/app.py &
|
||||
|
||||
# 启动jar包
|
||||
java -jar -Duser.timezone=Asia/Shanghai -Dfile.encoding=UTF-8 -Xms256m -Xmx1g /data/vp/virtual-patient-rasa-1.0-SNAPSHOT.jar "$@"
|
@ -0,0 +1,29 @@
|
||||
|
||||
recipe: default.v1
|
||||
language: zh
|
||||
|
||||
pipeline:
|
||||
- name: JiebaTokenizer
|
||||
- name: LanguageModelFeaturizer
|
||||
model_name: "bert"
|
||||
model_weights: "/rasa/bert-base-chinese"
|
||||
- name: RegexFeaturizer
|
||||
- name: DIETClassifier
|
||||
epochs: 100
|
||||
learning_rate: 0.001
|
||||
tensorboard_log_directory: ./log
|
||||
- name: ResponseSelector
|
||||
epochs: 100
|
||||
learning_rate: 0.001
|
||||
- name: FallbackClassifier
|
||||
threshold: 0.4
|
||||
ambiguity_threshold: 0.1
|
||||
- name: EntitySynonymMapper
|
||||
|
||||
policies:
|
||||
- name: MemoizationPolicy
|
||||
- name: TEDPolicy
|
||||
- name: RulePolicy
|
||||
core_fallback_threshold: 0.4
|
||||
core_fallback_action_name: "action_default_fallback"
|
||||
enable_fallback_prediction: True
|
@ -0,0 +1,29 @@
|
||||
|
||||
recipe: default.v1
|
||||
language: zh
|
||||
|
||||
pipeline:
|
||||
- name: JiebaTokenizer
|
||||
- name: LanguageModelFeaturizer
|
||||
model_name: bert
|
||||
model_weights: bert-base-chinese
|
||||
- name: RegexFeaturizer
|
||||
- name: DIETClassifier
|
||||
epochs: 100
|
||||
learning_rate: 0.001
|
||||
tensorboard_log_directory: ./log
|
||||
- name: ResponseSelector
|
||||
epochs: 100
|
||||
learning_rate: 0.001
|
||||
- name: FallbackClassifier
|
||||
threshold: 0.87
|
||||
ambiguity_threshold: 0.1
|
||||
- name: EntitySynonymMapper
|
||||
|
||||
policies:
|
||||
- name: MemoizationPolicy
|
||||
- name: TEDPolicy
|
||||
- name: RulePolicy
|
||||
core_fallback_threshold: 0.87
|
||||
core_fallback_action_name: "action_default_fallback"
|
||||
enable_fallback_prediction: True
|
@ -0,0 +1,33 @@
|
||||
# This file contains the credentials for the voice & chat platforms
|
||||
# which your bot is using.
|
||||
# https://rasa.com/docs/rasa/messaging-and-voice-channels
|
||||
|
||||
rest:
|
||||
# # you don't need to provide anything here - this channel doesn't
|
||||
# # require any credentials
|
||||
|
||||
|
||||
#facebook:
|
||||
# verify: "<verify>"
|
||||
# secret: "<your secret>"
|
||||
# page-access-token: "<your page access token>"
|
||||
|
||||
#slack:
|
||||
# slack_token: "<your slack token>"
|
||||
# slack_channel: "<the slack channel>"
|
||||
# slack_signing_secret: "<your slack signing secret>"
|
||||
|
||||
#socketio:
|
||||
# user_message_evt: <event name for user message>
|
||||
# bot_message_evt: <event name for bot messages>
|
||||
# session_persistence: <true/false>
|
||||
|
||||
#mattermost:
|
||||
# url: "https://<mattermost instance>/api/v4"
|
||||
# token: "<bot token>"
|
||||
# webhook_url: "<callback URL>"
|
||||
|
||||
# This entry is needed if you are using Rasa Enterprise. The entry represents credentials
|
||||
# for the Rasa Enterprise "channel", i.e. Talk to your bot and Share with guest testers.
|
||||
rasa:
|
||||
url: "http://localhost:5002/api"
|
@ -0,0 +1,51 @@
|
||||
# This file contains the different endpoints your bot can use.
|
||||
|
||||
# Server where the models are pulled from.
|
||||
# https://rasa.com/docs/rasa/model-storage#fetching-models-from-a-server
|
||||
|
||||
#models:
|
||||
# url: http://my-server.com/models/default_core@latest
|
||||
# wait_time_between_pulls: 10 # [optional](default: 100)
|
||||
|
||||
# Server which runs your custom actions.
|
||||
# https://rasa.com/docs/rasa/custom-actions
|
||||
|
||||
action_endpoint:
|
||||
url: "http://127.0.0.1:5055/webhook"
|
||||
|
||||
# Tracker store which is used to store the conversations.
|
||||
# By default the conversations are stored in memory.
|
||||
# https://rasa.com/docs/rasa/tracker-stores
|
||||
|
||||
#tracker_store:
|
||||
# type: redis
|
||||
# url: <host of the redis instance, e.g. localhost>
|
||||
# port: <port of your redis instance, usually 6379>
|
||||
# db: <number of your database within redis, e.g. 0>
|
||||
# password: <password used for authentication>
|
||||
# use_ssl: <whether or not the communication is encrypted, default false>
|
||||
|
||||
#tracker_store:
|
||||
# type: mongod
|
||||
# url: <url to your mongo instance, e.g. mongodb://localhost:27017>
|
||||
# db: <name of the db within your mongo instance, e.g. rasa>
|
||||
# username: <username used for authentication>
|
||||
# password: <password used for authentication>
|
||||
|
||||
|
||||
#tracker_store:
|
||||
# type: mongod
|
||||
# url: mongodb://192.168.10.137:27017
|
||||
# db: dialog_test
|
||||
# username:
|
||||
# password:
|
||||
|
||||
|
||||
# Event broker which all conversation events should be streamed to.
|
||||
# https://rasa.com/docs/rasa/event-brokers
|
||||
|
||||
#event_broker:
|
||||
# url: localhost
|
||||
# username: username
|
||||
# password: password
|
||||
# queue: queue
|
Loading…
Reference in New Issue