OysterQAQ commited on
Commit
215915e
1 Parent(s): aea73c0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -79
README.md CHANGED
@@ -1,91 +1,37 @@
1
- ---
2
- pipeline_tag: sentence-similarity
3
- tags:
4
- - sentence-transformers
5
- - feature-extraction
6
- - sentence-similarity
7
 
8
- ---
9
 
10
- # {MODEL_NAME}
11
 
12
- This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 512 dimensional dense vector space and can be used for tasks like clustering or semantic search.
13
 
14
- <!--- Describe your model here -->
 
 
 
 
 
 
15
 
16
- ## Usage (Sentence-Transformers)
17
 
18
- Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
 
19
 
20
- ```
21
- pip install -U sentence-transformers
22
- ```
23
 
24
- Then you can use the model like this:
25
 
26
- ```python
27
- from sentence_transformers import SentenceTransformer
28
- sentences = ["This is an example sentence", "Each sentence is converted"]
 
 
29
 
30
- model = SentenceTransformer('{MODEL_NAME}')
31
- embeddings = model.encode(sentences)
32
- print(embeddings)
33
- ```
34
 
 
 
35
 
36
-
37
- ## Evaluation Results
38
-
39
- <!--- Describe how your model was evaluated -->
40
-
41
- For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})
42
-
43
-
44
- ## Training
45
- The model was trained with the parameters:
46
-
47
- **DataLoader**:
48
-
49
- `torch.utils.data.dataloader.DataLoader` of length 64769 with parameters:
50
- ```
51
- {'batch_size': 80, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
52
- ```
53
-
54
- **Loss**:
55
-
56
- `sentence_transformers.losses.MultipleNegativesRankingLoss.MultipleNegativesRankingLoss` with parameters:
57
- ```
58
- {'scale': 20.0, 'similarity_fct': 'cos_sim'}
59
- ```
60
-
61
- Parameters of the fit()-Method:
62
- ```
63
- {
64
- "epochs": 20,
65
- "evaluation_steps": 0,
66
- "evaluator": "NoneType",
67
- "max_grad_norm": 1,
68
- "optimizer_class": "<class 'torch.optim.adamw.AdamW'>",
69
- "optimizer_params": {
70
- "lr": 2e-05
71
- },
72
- "scheduler": "WarmupLinear",
73
- "steps_per_epoch": null,
74
- "warmup_steps": 129538,
75
- "weight_decay": 0.01
76
- }
77
- ```
78
-
79
-
80
- ## Full Model Architecture
81
- ```
82
- SentenceTransformer(
83
- (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: DistilBertModel
84
- (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})
85
- (2): Dense({'in_features': 768, 'out_features': 512, 'bias': True, 'activation_function': 'torch.nn.modules.activation.Tanh'})
86
- )
87
- ```
88
-
89
- ## Citing & Authors
90
-
91
- <!--- Describe where people can find more information -->
 
1
+ ## acgvoc2vec
 
 
 
 
 
2
 
3
+ 结构为[sentence-transformers](https://github.com/UKPLab/sentence-transformers),使用其**distiluse-base-multilingual-cased-v2**预训练权重,以5e-5的学习率在动漫相关语句对数据集下进行微调,损失函数为MultipleNegativesRankingLoss。
4
 
5
+ 数据集主要包括:
6
 
7
+ * Bangumi
8
 
9
+ * 动画日文名-动画中文名
10
+ * 动画日文名-简介
11
+ * 动画中文名-简介
12
+ * 动画中文名-标签
13
+ * 动画日文名-角色
14
+ * 动画中文名-角色
15
+ * 声优日文名-声优中文名
16
 
17
+ * pixiv
18
 
19
+ * 标签日文名-标签中文名
20
+ * AnimeList
21
 
22
+ * 动画日文名-动画英文名
 
 
23
 
24
+ * 维基百科
25
 
26
+ * 动画日文名-动画中文名
27
+ * 动画日文名-动画英文名
28
+ * 中英日详情页h2标题及其对应文本
29
+ * 简介多语言对照(中日英)
30
+ * 动画名-简介(中日英)
31
 
32
+ * moegirl
 
 
 
33
 
34
+ * 动画中文名的简介-简介
35
+ * 动画中文名+小标题-对应内容
36
 
37
+ 在进行爬取,清洗,处理后得到510w对文本对(还在持续增加),batchzise=80训练了20个epoch,使st的权重能够适应该问题空间,生成融合了领域知识的文本特征向量(体现为有关的文本距离更加接近,例如作品与登场人物,或者来自同一作品的登场人物)。