Downloads · 30 days
14
2% of all-time downloads
wilsontam/bert-base-chinese-dialogue
bert-base-chinese-dialogue is a feature extraction model from wilsontam. Use it when you need embeddings to search or compare text. It is set up for transformers.
This is a model post trained using the following multi-turn Chinese dialogue corpora (only the training set portions defined in the literature): Douban E-commerce Restore-200k
Downloads · 30 days
14
2% of all-time downloads
All-time downloads
706
Public
Repo size
818 MB
Likes
0
Public
Click a slice to open those files.
.bin409 MB · 100%
From the Hugging Face model README
This is a model post trained using the following multi-turn Chinese dialogue corpora (only the training set portions defined in the literature):
The criteria to minimize are masked LM and next sentence prediction (3 category labels: 0 (random response from corpora), 1 (random response within a dialogue context), 2 (correct next response)).
If you want to use this model to encode a multiple-turn dialogue, the format is "[CLS] turn t-2 [eos] turn t-1 [SEP] response [SEP]" where tokens before and include the first SEP token are considered as segment 0. Any tokens after it are considered as segment 1. This is similar to the format used in NSP training in Bert. In addition, we use a newly introduced token [eos] to separate between different turns. It is okay if you only have one turn as segment 0 and 1 response turn as segment 1 using this input format: "[CLS] turn t-1 [SEP] response [SEP]" without using [eos] .