File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -647,10 +647,10 @@ from paddlenlp import Taskflow
647
647
648
648
这里我们以命名实体识别` Taskflow("ner", mode="accurate") ` 为例,展示如何定制自己的模型。
649
649
650
- 调用` Taskflow ` 接口后,程序自动将相关文件下载到` $HOME/.paddlenlp/taskflow/ner/ wordtag/ ` ,该默认路径包含以下文件:
650
+ 调用` Taskflow ` 接口后,程序自动将相关文件下载到` $HOME/.paddlenlp/taskflow/wordtag/ ` ,该默认路径包含以下文件:
651
651
652
652
``` text
653
- $HOME/.paddlenlp/taskflow/ner/ wordtag/
653
+ $HOME/.paddlenlp/taskflow/wordtag/
654
654
├── model_state.pdparams # 默认模型参数文件
655
655
├── model_config.json # 默认模型配置文件
656
656
└── tags.txt # 默认标签文件
Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ def from_segments(self, *inputs):
316
316
return results
317
317
318
318
def interactive_mode (self , max_turn ):
319
- with self .task_instance .interactive_mode (max_turn = 3 ):
319
+ with self .task_instance .interactive_mode (max_turn ):
320
320
while True :
321
321
human = input ("[Human]:" ).strip ()
322
322
if human .lower () == "exit" :
You can’t perform that action at this time.
0 commit comments