Multi-Launguage RoBERTa trained by RIKEN-AIP LIAT.
Project description
liat_ml_roberta
Multi-Language RoBERTa trained by RIKEN-AIP LIAT.
How to install
Can use pip to install.
pip install liat_ml_roberta
How to use
The loaded models and configurations can be used in the same way as transformers.roberta.
from liat_ml_roberta import RoBERTaTokenizer
def main():
tokenizer = RoBERTaTokenizer.from_pretrained(version="en_20190121_m10000_v24000_base")
print(tokenizer.tokenize("This is a pen."))
config = RoBERTaConfig.from_pretrained("roberta_base_en_20190121_m10000_v24000_u125000")
model = RoBERTaModel.from_pretrained("roberta_base_en_20190121_m10000_v24000_u125000", config=config)
if __name__ == "__main__":
main()
Models
name | lang | size | bpe merges | vocab size | updates | wikipedia version |
---|---|---|---|---|---|---|
roberta_base_ja_20190121_m10000_v24000_u125000 | ja | roberta-base | 10000 | 24000 | 125000 | 20190121 |
roberta_base_ja_20190121_m10000_v24000_u500000 | ja | roberta-base | 10000 | 24000 | 500000 | 20190121 |
roberta_base_en_20190121_m10000_v24000_u125000 | en | roberta-base | 10000 | 24000 | 125000 | 20190121 |
roberta_base_en_20190121_m10000_v24000_u500000 | en | roberta-base | 10000 | 24000 | 500000 | 20190121 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
liat_ml_roberta-1.1.1.tar.gz
(734.9 kB
view details)
Built Distribution
File details
Details for the file liat_ml_roberta-1.1.1.tar.gz
.
File metadata
- Download URL: liat_ml_roberta-1.1.1.tar.gz
- Upload date:
- Size: 734.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44b91ad2a02f0d3b60c785b30d10ae266d4a2f1a7e871d1b03531da4e2764243 |
|
MD5 | 4c09232ff484432868689bcb2578dad3 |
|
BLAKE2b-256 | 70fb64da7f4b035fff5f4076c02dcbabfc9b5970e0ec93fad038e4a24a251115 |
File details
Details for the file liat_ml_roberta-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: liat_ml_roberta-1.1.1-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be16f1ae604669f88d0a34c8966f309ae989a055a8ca600052499a5aa2314643 |
|
MD5 | 97553d7ed48c7b94d667123fb4b3ab44 |
|
BLAKE2b-256 | 10df48c5a8bf6ff3f74fdf63643ccc399a97ae10cc79a3dc5cda5f6c72210d11 |