junnyu commited on
Commit
4709f98
1 Parent(s): f027f2f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -5
README.md CHANGED
@@ -1,7 +1,14 @@
 
 
 
 
 
 
1
  ## 介绍
2
- tf版本 https://github.com/ZhuiyiTechnology/WoBERT
3
- pytorch版本 https://github.com/JunnYu/WoBERT_pytorch
4
-
 
5
  ## 使用
6
  ```python
7
  git clone https://github.com/JunnYu/WoBERT_pytorch
@@ -9,7 +16,6 @@ cd WoBERT_pytorch
9
  import torch
10
  from transformers import BertForMaskedLM as WoBertForMaskedLM
11
  from tokenization_wobert import WoBertTokenizer
12
-
13
  pretrained_model_or_path_list = [
14
  "junnyu/wobert_chinese_plus_base", "junnyu/wobert_chinese_base"
15
  ]
@@ -32,4 +38,13 @@ for path in pretrained_model_or_path_list:
32
  print(outputs_sentence)
33
  # PLUS WoBERT 今天[天气||阳光||天||心情||空气]很好,我[想||要||打算||准备||就]去公园玩。
34
  # WoBERT 今天[天气||阳光||天||心情||空气]很好,我[想||要||就||准备||也]去公园玩。
35
- ```
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: zh
3
+ tags:
4
+ - wobert
5
+ inference: false
6
+ ---
7
  ## 介绍
8
+ ### tf版本
9
+ https://github.com/ZhuiyiTechnology/WoBERT
10
+ ### pytorch版本
11
+ https://github.com/JunnYu/WoBERT_pytorch
12
  ## 使用
13
  ```python
14
  git clone https://github.com/JunnYu/WoBERT_pytorch
 
16
  import torch
17
  from transformers import BertForMaskedLM as WoBertForMaskedLM
18
  from tokenization_wobert import WoBertTokenizer
 
19
  pretrained_model_or_path_list = [
20
  "junnyu/wobert_chinese_plus_base", "junnyu/wobert_chinese_base"
21
  ]
 
38
  print(outputs_sentence)
39
  # PLUS WoBERT 今天[天气||阳光||天||心情||空气]很好,我[想||要||打算||准备||就]去公园玩。
40
  # WoBERT 今天[天气||阳光||天||心情||空气]很好,我[想||要||就||准备||也]去公园玩。
41
+ ```
42
+ ## 引用
43
+ Bibtex:
44
+ ```tex
45
+ @techreport{zhuiyiwobert,
46
+ title={WoBERT: Word-based Chinese BERT model - ZhuiyiAI},
47
+ author={Jianlin Su},
48
+ year={2020},
49
+ url="https://github.com/ZhuiyiTechnology/WoBERT",
50
+ }