ltg
/

davda54 commited on
Commit
036e551
1 Parent(s): cfe44fe

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ inference: false
5
+ tags:
6
+ - BERT
7
+ - BNC-BERT
8
+ - encoder
9
+ license: cc-by-4.0
10
+ ---
11
+
12
+ # BNC-BERT
13
+
14
+
15
+ ## Example usage
16
+
17
+ This model currently needs a custom wrapper from `modeling_ltgbert.py`. Then you can use it like this:
18
+
19
+ ```python
20
+ import torch
21
+ from transformers import AutoTokenizer
22
+ from modeling_ltgbert import LtgBertForMaskedLM
23
+
24
+ tokenizer = AutoTokenizer.from_pretrained("path/to/folder")
25
+ bert = LtgBertForMaskedLM.from_pretrained("path/to/folder")
26
+ ```