File size: 666 Bytes
30c5c4c
 
77b62e9
 
 
 
 
30c5c4c
 
77b62e9
30c5c4c
77b62e9
30c5c4c
ea79790
77b62e9
30c5c4c
77b62e9
ea79790
77b62e9
ea79790
77b62e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
library_name: transformers
license: apache-2.0
language:
- ja
base_model: studio-ousia/luke-japanese-base-lite
pipeline_tag: fill-mask
---

# luke-japanese-base-lite-xlm-roberta

[studio-ousia/luke-japanese-base-lite](https://huggingface.co/studio-ousia/luke-japanese-base-lite)の重みの名前をXLMRoberta形式に置き換え、XLMRobertaモデルとして扱えるようにした物です。

```python
from transformers import XLMRobertaForMaskedLM, XLMRobertaTokenizer

model_name = "hotchpotch/luke-japanese-base-lite-xlm-roberta"

model = XLMRobertaForMaskedLM.from_pretrained(model_name)
tokenizer = XLMRobertaTokenizer.from_pretrained(model_name)
```