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.2.tar.gz
(734.9 kB
view details)
Built Distribution
File details
Details for the file liat_ml_roberta-1.1.2.tar.gz
.
File metadata
- Download URL: liat_ml_roberta-1.1.2.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 | 937380aa7dece9fa69c90ac52946a52b71d97d00916adfa860ea5d0f57f2036d |
|
MD5 | f3c1dca7d2275471a71ec18993f52cef |
|
BLAKE2b-256 | 49d0ac19dc7b192a21d0ba93debff4507d15c133b49ab15632d495dc63df03fa |
File details
Details for the file liat_ml_roberta-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: liat_ml_roberta-1.1.2-py3-none-any.whl
- Upload date:
- Size: 744.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d71bbd78da278e33445aca1ab1fdd37d1cfb2a258023a527375321288442cbd |
|
MD5 | 2ca1cc6f07a31554baba9a2cb43ad10a |
|
BLAKE2b-256 | 51d35bfb25297583df327eb9c57d0013903a1e516a2870f8d2cdeac6fb8554c6 |