colorfulscoop / sbert-base-ja

huggingface.co
Total runs: 300
24-hour runs: 3
7-day runs: 70
30-day runs: 107
Model's Last Updated: August 08 2021
sentence-similarity

Introduction of sbert-base-ja

Model Details of sbert-base-ja

Sentence BERT base Japanese model

This repository contains a Sentence BERT base model for Japanese.

Pretrained model

This model utilizes a Japanese BERT model colorfulscoop/bert-base-ja v1.0 released under Creative Commons Attribution-ShareAlike 3.0 as a pretrained model.

Training data

Japanese SNLI dataset released under Creative Commons Attribution-ShareAlike 4.0 is used for training.

Original training dataset is splitted into train/valid dataset. Finally, follwoing data is prepared.

  • Train data: 523,005 samples
  • Valid data: 10,000 samples
  • Test data: 3,916 samples
Model description

This model utilizes SentenceTransformer model from the sentence-transformers . The model detail is as below.

>>> from sentence_transformers import SentenceTransformer
>>> SentenceTransformer("colorfulscoop/sbert-base-ja")
SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
Training

This model finetuned colorfulscoop/bert-base-ja with Softmax classifier of 3 labels of SNLI. AdamW optimizer with learning rate of 2e-05 linearly warmed-up in 10% of train data was used. The model was trained in 1 epoch with batch size 8.

Note: in a original paper of Sentence BERT , a batch size of the model trained on SNLI and Multi-Genle NLI was 16. In this model, the dataset is around half smaller than the origial one, therefore the batch size was set to half of the original batch size of 16.

Trainind was conducted on Ubuntu 18.04.5 LTS with one RTX 2080 Ti.

After training, test set accuracy reached to 0.8529.

Training code is available in a GitHub repository .

Usage

First, install dependecies.

$ pip install sentence-transformers==2.0.0

Then initialize SentenceTransformer model and use encode method to convert to vectors.

>>> from sentence_transformers import SentenceTransformer
>>> model = SentenceTransformer("colorfulscoop/sbert-base-ja")
>>> sentences = ["外をランニングするのが好きです", "海外旅行に行くのが趣味です"]
>>> model.encode(sentences)
License

Copyright (c) 2021 Colorful Scoop

All the models included in this repository are licensed under Creative Commons Attribution-ShareAlike 4.0 .

Disclaimer: Use of this model is at your sole risk. Colorful Scoop makes no warranty or guarantee of any outputs from the model. Colorful Scoop is not liable for any trouble, loss, or damage arising from the model output.


This model utilizes the folllowing pretrained model.

  • Name: bert-base-ja
  • Credit: (c) 2021 Colorful Scoop
  • License: Creative Commons Attribution-ShareAlike 3.0
  • Disclaimer: The model potentially has possibility that it generates similar texts in the training data, texts not to be true, or biased texts. Use of the model is at your sole risk. Colorful Scoop makes no warranty or guarantee of any outputs from the model. Colorful Scoop is not liable for any trouble, loss, or damage arising from the model output.
  • Link: https://huggingface.co/colorfulscoop/bert-base-ja

This model utilizes the following data for fine-tuning.

Runs of colorfulscoop sbert-base-ja on huggingface.co

300
Total runs
3
24-hour runs
60
3-day runs
70
7-day runs
107
30-day runs

More Information About sbert-base-ja huggingface.co Model

More sbert-base-ja license Visit here:

https://choosealicense.com/licenses/cc-by-sa-4.0

sbert-base-ja huggingface.co

sbert-base-ja huggingface.co is an AI model on huggingface.co that provides sbert-base-ja's model effect (), which can be used instantly with this colorfulscoop sbert-base-ja model. huggingface.co supports a free trial of the sbert-base-ja model, and also provides paid use of the sbert-base-ja. Support call sbert-base-ja model through api, including Node.js, Python, http.

colorfulscoop sbert-base-ja online free

sbert-base-ja huggingface.co is an online trial and call api platform, which integrates sbert-base-ja's modeling effects, including api services, and provides a free online trial of sbert-base-ja, you can try sbert-base-ja online for free by clicking the link below.

colorfulscoop sbert-base-ja online free url in huggingface.co:

https://huggingface.co/colorfulscoop/sbert-base-ja

sbert-base-ja install

sbert-base-ja is an open source model from GitHub that offers a free installation service, and any user can find sbert-base-ja on GitHub to install. At the same time, huggingface.co provides the effect of sbert-base-ja install, users can directly use sbert-base-ja installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

sbert-base-ja install url in huggingface.co:

https://huggingface.co/colorfulscoop/sbert-base-ja

Url of sbert-base-ja

Provider of sbert-base-ja huggingface.co

colorfulscoop
ORGANIZATIONS

Other API from colorfulscoop