Views
No views yet
pkshatech/simcse-ja-bert-base-clcmlpcl-tohoku/bert-base-japanese-v2 and trained on JSNLI dataset, which is a Japanese natural language inference dataset.pip install -U fugashi[unidic-lite] sentence-transformers1from sentence_transformers import SentenceTransformer
2sentences = [
3 "PKSHA Technologyは機械学習/深層学習技術に関わるアルゴリズムソリューションを展開している。",
4 "この深層学習モデルはPKSHA Technologyによって学習され、公開された。",
5 "広目天は、仏教における四天王の一尊であり、サンスクリット語の「種々の眼をした者」を名前の由来とする。",
6]
7
8model = SentenceTransformer('pkshatech/simcse-ja-bert-base-clcmlp')
9embeddings = model.encode(sentences)
10print(embeddings)tohoku/bert-base-japanese-v2. Please see the README of tohoku/bert-base-japanese-v2 for details.tohoku/bert-base-japanese-v2 as the initial value and trained it on the train set of JSNLI. We trained 20 epochs and published the checkpoint of the model with the highest Spearman's correlation coefficient on the validation set 1 of the train set of JSTS| Parameter | Value |
|---|---|
| pooling_strategy | [CLS] -> single fully-connected layer |
| max_seq_length | 128 |
| with hard negative | true |
| temperature of contrastive loss | 0.05 |
| Batch size | 200 |
| Learning rate | 1e-5 |
| Weight decay | 0.01 |
| Max gradient norm | 1.0 |
| Warmup steps | 2012 |
| Scheduler | WarmupLinear |
| Epochs | 20 |
| Evaluation steps | 250 |