junnyu commited on
Commit
14113ab
·
1 Parent(s): 97341cd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -4,6 +4,9 @@ tags:
4
  - glycebert
5
  inference: False
6
  ---
 
 
 
7
  # ChineseBert_pytorch
8
  本项目主要自定义了tokenization_chinesebert_fast.py文件中的ChineseBertTokenizerFast代码。从而可以从huggingface.co调用。
9
  ```python
@@ -25,8 +28,7 @@ pip install git+https://github.com/JunnYu/ChineseBert_pytorch.git
25
  # Usage
26
  ```python
27
  import torch
28
- from transformers import BertConfig as ChineseBertConfig
29
- from chinesebert import ChineseBertForMaskedLM, ChineseBertTokenizerFast
30
 
31
  pretrained_tokenizer_name = "junnyu/ChineseBERT-base"
32
  pretrained_model_name = "ShannonAI/ChineseBERT-base"
 
4
  - glycebert
5
  inference: False
6
  ---
7
+
8
+ # https://github.com/JunnYu/ChineseBert_pytorch
9
+
10
  # ChineseBert_pytorch
11
  本项目主要自定义了tokenization_chinesebert_fast.py文件中的ChineseBertTokenizerFast代码。从而可以从huggingface.co调用。
12
  ```python
 
28
  # Usage
29
  ```python
30
  import torch
31
+ from chinesebert import ChineseBertForMaskedLM, ChineseBertTokenizerFast, ChineseBertConfig
 
32
 
33
  pretrained_tokenizer_name = "junnyu/ChineseBERT-base"
34
  pretrained_model_name = "ShannonAI/ChineseBERT-base"