Skip to main content

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


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.3.tar.gz (907.8 kB view details)

Uploaded Source

Built Distribution

liat_ml_roberta-1.1.3-py3-none-any.whl (918.9 kB view details)

Uploaded Python 3

File details

Details for the file liat_ml_roberta-1.1.3.tar.gz.

File metadata

  • Download URL: liat_ml_roberta-1.1.3.tar.gz
  • Upload date:
  • Size: 907.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.11

File hashes

Hashes for liat_ml_roberta-1.1.3.tar.gz
Algorithm Hash digest
SHA256 50e2384fe5bb5ccf0b5d062b38a2e3efd2dd4305edbca3042fbdd4062b0c08fe
MD5 50f07d3f703495c6597f1853f366ca70
BLAKE2b-256 e7a2963196f2226074028ce60fec81cc1c74bbaa72ec7761f1850926b4b8bdf2

See more details on using hashes here.

File details

Details for the file liat_ml_roberta-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for liat_ml_roberta-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ccad46a52095e0b250c83f67d23a1830143f1007681db7770e7db34f449bdf96
MD5 81280a6b5d666f01fbb1e2eba66a8575
BLAKE2b-256 0084b9b73a9d57566b90aaa19ee76fd07a187cf089a5b031864cfa04cca8ba79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page