提交 2fa1522b 编写于 作者: X xiongxinlei

update the punc yaml to application.yaml, test=doc

上级 ba62b85e
...@@ -385,11 +385,6 @@ class TextClientExecutor(BaseExecutor): ...@@ -385,11 +385,6 @@ class TextClientExecutor(BaseExecutor):
default=None, default=None,
help='sentence to be process by text server.', help='sentence to be process by text server.',
required=True) required=True)
self.parser.add_argument(
'--output',
type=str,
default=None,
help='Return punctuation sentence.')
def execute(self, argv: List[str]) -> bool: def execute(self, argv: List[str]) -> bool:
"""Execute the request from the argv. """Execute the request from the argv.
......
...@@ -11,7 +11,7 @@ port: 8090 ...@@ -11,7 +11,7 @@ port: 8090
# protocol = ['websocket', 'http'] (only one can be selected). # protocol = ['websocket', 'http'] (only one can be selected).
# http only support offline engine type. # http only support offline engine type.
protocol: 'http' protocol: 'http'
engine_list: ['asr_python', 'tts_python', 'cls_python'] engine_list: ['asr_python', 'tts_python', 'cls_python', 'text_python']
################################################################################# #################################################################################
...@@ -155,3 +155,15 @@ cls_inference: ...@@ -155,3 +155,15 @@ cls_inference:
glog_info: False # True -> print glog glog_info: False # True -> print glog
summary: True # False -> do not show predictor config summary: True # False -> do not show predictor config
################################### Text #########################################
################### text task: punc; engine_type: python #######################
text_python:
task: punc
model_type: 'ernie_linear_p7_wudao'
lang: 'zh'
sample_rate: 16000
cfg_path: # [optional]
ckpt_path: # [optional]
vocab_file: # [optional]
device: # set 'gpu:id' or 'cpu'
\ No newline at end of file
# This is the parameter configuration file for PaddleSpeech Serving.
#################################################################################
# SERVER SETTING #
#################################################################################
host: 0.0.0.0
port: 8190
# The task format in the engin_list is: <speech task>_<engine type>
# task choices = ['asr_python', 'asr_inference', 'tts_python', 'tts_inference']
# protocol = ['websocket', 'http'] (only one can be selected).
# http only support offline engine type.
protocol: 'http'
engine_list: ['text_python']
#################################################################################
# ENGINE CONFIG #
#################################################################################
################################### ASR #########################################
################### speech task: asr; engine_type: python #######################
text_python:
task: punc
model_type: 'ernie_linear_p7_wudao'
lang: 'zh'
sample_rate: 16000
cfg_path: # [optional]
ckpt_path: # [optional]
vocab_file: # [optional]
device: # set 'gpu:id' or 'cpu'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册