Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更正typo否则报错 #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/docs/二郎神系列/Erlangshen-Ubert-110M-Chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ pip install --editable ./
一键运行下面代码得到预测结果, 你可以任意修改示例 text 和要抽取的 entity_type,体验一下 Zero-Shot 性能
```python
import argparse
from fengshen import UbertPiplines
from fengshen import UbertPipelines

total_parser = argparse.ArgumentParser("TASK NAME")
total_parser = UbertPiplines.piplines_args(total_parser)
total_parser = UbertPipelines.pipelines_args(total_parser)
args = total_parser.parse_args()
args.pretrained_model_path = 'IDEA-CCNL/Erlangshen-Ubert-110M-Chinese' #预训练模型路径
test_data=[
Expand All @@ -67,7 +67,7 @@ test_data=[
"id": 0}
]

model = UbertPiplines(args)
model = UbertPipelines(args)
result = model.predict(test_data)
for line in result:
print(line)
Expand Down Expand Up @@ -99,7 +99,7 @@ for line in result:

### 数据预处理示例

整个模型的 Piplines 我们已经写好,所以为了方便,我们定义了数据格式。目前我们在预训练中主要含有一下几种任务类型
整个模型的 Pipelines 我们已经写好,所以为了方便,我们定义了数据格式。目前我们在预训练中主要含有一下几种任务类型

| task_type | subtask_type |
|:---------:|:--------------:|
Expand Down
8 changes: 4 additions & 4 deletions source/docs/二郎神系列/Erlangshen-Ubert-330M-Chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ Run the code

```python
import argparse
from fengshen import UbertPiplines
from fengshen import UbertPipelines

total_parser = argparse.ArgumentParser("TASK NAME")
total_parser = UbertPiplines.piplines_args(total_parser)
total_parser = UbertPipelines.pipelines_args(total_parser)
args = total_parser.parse_args()

args.pretrained_model_path = "IDEA-CCNL/Erlangshen-Ubert-330M-Chinese"
Expand All @@ -69,7 +69,7 @@ test_data=[
"id": 0}
]

model = UbertPiplines(args)
model = UbertPipelines(args)
result = model.predict(test_data)
for line in result:
print(line)
Expand Down Expand Up @@ -101,7 +101,7 @@ for line in result:

## 数据预处理示例

整个模型的 Piplines 我们已经写好,所以为了方便,我们定义了数据格式。目前我们在预训练中主要含有一下几种任务类型
整个模型的 Pipelines 我们已经写好,所以为了方便,我们定义了数据格式。目前我们在预训练中主要含有一下几种任务类型

| task_type | subtask_type |
|:---------:|:--------------:|
Expand Down