matej.martinc
commited on
Commit
·
0cc5dbd
1
Parent(s):
3ab0c42
adding usage example
Browse files
README.md
CHANGED
@@ -18,6 +18,13 @@ the publication of conference proceedings).
|
|
18 |
The model has the bert-base architecture and configuration and was pretrained from scratch as a masked language model
|
19 |
on the Sanskrit reference corpus, and fine-tuned on the smaller corpus of Buddhist Sanskrit.
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
## Intended uses & limitations
|
22 |
|
23 |
MIT license, no limitations
|
|
|
18 |
The model has the bert-base architecture and configuration and was pretrained from scratch as a masked language model
|
19 |
on the Sanskrit reference corpus, and fine-tuned on the smaller corpus of Buddhist Sanskrit.
|
20 |
|
21 |
+
## How to use it
|
22 |
+
|
23 |
+
```
|
24 |
+
model = AutoModelForMaskedLM.from_pretrained("Matej/bert-base-buddhist-sanskrit")
|
25 |
+
tokenizer = AutoTokenizer.from_pretrained("Matej/bert-base-buddhist-sanskrit", use_fast=True)
|
26 |
+
```
|
27 |
+
|
28 |
## Intended uses & limitations
|
29 |
|
30 |
MIT license, no limitations
|