bread-good111 commited on
Commit
d22f4ca
·
verified ·
1 Parent(s): ca55eb3

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ emotion[[:space:]]summary/tokenizer.json filter=lfs diff=lfs merge=lfs -text
emotion summary/.gitattributes ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ *.model filter=lfs diff=lfs merge=lfs -text
3
+ *.json filter=lfs diff=lfs merge=lfs -text
4
+ *.md filter=lfs diff=lfs merge=lfs -text
5
+
emotion summary/README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Emotion Summary Model (mT5-small)
2
+
3
+ ## 模型描述
4
+
5
+ 这是一个基于 mT5-small 微调的情感总结模型,用于从心理咨询案例中提取和总结关键信息。
6
+
7
+ ## 模型信息
8
+
9
+ - **基础模型**: google/mt5-small
10
+ - **任务**: 长文本情感信息提取与总结
11
+ - **训练数据**: 8000条心理咨询对话
12
+ - **验证数据**: 800条
13
+ - **输出字段**:
14
+ - predicted_cause: 病因分析
15
+ - predicted_symptoms: 症状描述
16
+ - predicted_treatment_process: 治疗过程
17
+ - predicted_illness_Characteristics: 疾病特征
18
+ - predicted_treatment_effect: 治疗效果
19
+
20
+ ## 使用方法
21
+
22
+ ```python
23
+ from transformers import MT5ForConditionalGeneration, MT5Tokenizer
24
+
25
+ # 加载模型和tokenizer
26
+ model = MT5ForConditionalGeneration.from_pretrained("./emotion_summary")
27
+ tokenizer = MT5Tokenizer.from_pretrained("./emotion_summary")
28
+
29
+ # 准备输入
30
+ case_text = "..." # 输入的案例文本
31
+ input_text = f"Summarize case: {case_text}"
32
+
33
+ # 编码
34
+ input_ids = tokenizer.encode(input_text, return_tensors="pt", max_length=512, truncation=True)
35
+
36
+ # 生成
37
+ output_ids = model.generate(
38
+ input_ids,
39
+ max_length=256,
40
+ num_beams=4,
41
+ early_stopping=True
42
+ )
43
+
44
+ # 解码
45
+ output_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
46
+ print(output_text)
47
+ ```
48
+
49
+ ## 训练参数
50
+
51
+ - **Epochs**: 1
52
+ - **Batch Size**: 4
53
+ - **Learning Rate**: 1e-4
54
+ - **Max Input Length**: 128 tokens
55
+ - **Max Output Length**: 128 tokens
56
+ - **Gradient Accumulation Steps**: 2
57
+
58
+ ## 性能
59
+
60
+ - 训练损失: ~2.5
61
+ - 验证损失: ~2.8
62
+ - 推理速度: ~2-3秒/样本
63
+
64
+ ## 注意事项
65
+
66
+ 1. 输入文本需要包含完整的案例描述、咨询过程和反思内容
67
+ 2. 模型针对心理咨询领域文本优化
68
+ 3. 建议输入长度控制在512 tokens以内以获得最佳效果
69
+
70
+ ## 文件清单
71
+
72
+ - `config.json`: 模型配置
73
+ - `generation_config.json`: 生成配置
74
+ - `model.safetensors`: 模型权重
75
+ - `tokenizer配置文件`: 用于文本编码/解码
76
+ - `spiece.model`: SentencePiece词表
77
+
78
+ ## 许可证
79
+
80
+ MIT License
81
+
82
+ ## 引用
83
+
84
+ 如果使用本模型,请引用:
85
+
86
+ ```
87
+ @model{emotion_summary_mt5,
88
+ title={Emotion Summary Model based on mT5-small},
89
+ year={2025},
90
+ author={Your Team}
91
+ }
92
+ ```
emotion summary/UPLOAD_GUIDE.md ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Emotion Summary 模型上传到 Hugging Face 指南
2
+
3
+ ## 📦 文件清单
4
+
5
+ 此文件夹包含上传到 Hugging Face 所需的所有文件:
6
+
7
+ ### 必需文件(9个):
8
+
9
+ 1. **config.json** (1.93 KB)
10
+ - 模型配置文件
11
+ - 定义模型架构和参数
12
+
13
+ 2. **generation_config.json** (188 Bytes)
14
+ - 生成配置文件
15
+ - 定义文本生成参数(beam search等)
16
+
17
+ 3. **model.safetensors** (1,145.1 MB = 1.12 GB)
18
+ - 模型权重文件
19
+ - 使用SafeTensors格式存储
20
+ - ⚠️ 需要Git LFS上传
21
+
22
+ 4. **special_tokens_map.json** (280 Bytes)
23
+ - 特殊token映射
24
+ - 定义[PAD], [CLS], [SEP]等特殊标记
25
+
26
+ 5. **spiece.model** (4.11 MB)
27
+ - SentencePiece词表模型
28
+ - mT5使用的分词器
29
+
30
+ 6. **tokenizer.json** (15.59 MB)
31
+ - Tokenizer配置
32
+ - 包含词表和分词规则
33
+
34
+ 7. **tokenizer_config.json** (20 KB)
35
+ - Tokenizer配置参数
36
+ - 定义分词器的行为
37
+
38
+ 8. **README.md**
39
+ - 模型卡片(Model Card)
40
+ - 描述模型用途、性能、使用方法
41
+
42
+ 9. **.gitattributes**
43
+ - Git LFS配置
44
+ - 标记大文件使用LFS上传
45
+
46
+ 10. **inference_example.py**
47
+ - 推理示例代码
48
+ - 展示如何使用模型
49
+
50
+ ---
51
+
52
+ ## 📊 文件大小统计
53
+
54
+ | 文件名 | 大小 | 类型 |
55
+ |--------|------|------|
56
+ | model.safetensors | 1,145.1 MB | 模型权重 |
57
+ | tokenizer.json | 15.59 MB | Tokenizer |
58
+ | spiece.model | 4.11 MB | 词表 |
59
+ | tokenizer_config.json | 20 KB | 配置 |
60
+ | config.json | ~2 KB | 配置 |
61
+ | README.md | ~3 KB | 文档 |
62
+ | 其他JSON文件 | < 1 KB | 配置 |
63
+ | **总计** | **~1.16 GB** | - |
64
+
65
+ ---
66
+
67
+ ## 🚀 上传到 Hugging Face 的步骤
68
+
69
+ ### 方法1:使用 Web 界面上传(推荐)
70
+
71
+ 1. **登录 Hugging Face**
72
+ - 访问:https://huggingface.co
73
+ - 登录您的账号
74
+
75
+ 2. **创建新模型仓库**
76
+ - 点击右上角头像 → "New Model"
77
+ - 填写信息:
78
+ - Model name: `emotion-summary-mt5`
79
+ - License: MIT
80
+ - 勾选 "Public" 或 "Private"
81
+
82
+ 3. **上传文件**
83
+ - 进入模型页面
84
+ - 点击 "Files and versions" 标签
85
+ - 点击 "Add file" → "Upload files"
86
+ - 拖拽或选择本文件夹中的所有文件
87
+ - ⚠️ **重要**:确保上传 `.gitattributes` 文件在上传其他文件之前!
88
+
89
+ 4. **等待处理**
90
+ - 大文件会自动使用 Git LFS
91
+ - model.safetensors (1.1GB) 需要较长时间
92
+
93
+ ### 方法2:使用命令行 + Git
94
+
95
+ ```bash
96
+ # 1. 安装 Git LFS(如果还没安装)
97
+ git lfs install
98
+
99
+ # 2. 克隆你的模型仓库
100
+ git clone https://huggingface.co/<your-username>/emotion-summary-mt5
101
+ cd emotion-summary-mt5
102
+
103
+ # 3. 复制所有文件到仓库
104
+ cp ../emotion_summary_huggingface/* .
105
+
106
+ # 4. 添加所有文件
107
+ git add .
108
+
109
+ # 5. 提交
110
+ git commit -m "Upload emotion summary model"
111
+
112
+ # 6. 推送(需要 Hugging Face token)
113
+ git push
114
+ ```
115
+
116
+ ### 方法3:使用 huggingface_hub 库
117
+
118
+ ```python
119
+ from huggingface_hub import HfApi, create_repo
120
+
121
+ # 创建API对象
122
+ api = HfApi()
123
+
124
+ # 创建仓库
125
+ repo_id = "your-username/emotion-summary-mt5"
126
+ create_repo(repo_id, repo_type="model", exist_ok=True)
127
+
128
+ # 上传整个文件夹
129
+ api.upload_folder(
130
+ folder_path="./emotion_summary_huggingface",
131
+ repo_id=repo_id,
132
+ repo_type="model"
133
+ )
134
+
135
+ print(f"✓ Model uploaded to https://huggingface.co/{repo_id}")
136
+ ```
137
+
138
+ ---
139
+
140
+ ## 🔑 获取 Hugging Face Token
141
+
142
+ 如果使用命令行或Python上传,需要访问token:
143
+
144
+ 1. 访问:https://huggingface.co/settings/tokens
145
+ 2. 点击 "New token"
146
+ 3. 给token命名(如 "upload-models")
147
+ 4. 选择权限:**Write**
148
+ 5. 复制token并保存
149
+
150
+ **设置token:**
151
+ ```bash
152
+ # 方式1:使用 huggingface-cli
153
+ huggingface-cli login
154
+
155
+ # 方式2:设置环境变量
156
+ export HF_TOKEN="your_token_here"
157
+ ```
158
+
159
+ ---
160
+
161
+ ## ⚠️ 注意事项
162
+
163
+ 1. **Git LFS 必需**
164
+ - model.safetensors 文件很大 (1.1GB)
165
+ - 必须使用 Git LFS 上传
166
+ - `.gitattributes` 文件已配置好
167
+
168
+ 2. **上传顺序**
169
+ - 先上传 `.gitattributes`
170
+ - 再上传其他所有文件
171
+
172
+ 3. **网络要求**
173
+ - 上传 1.1GB 文件需要稳定网络
174
+ - 建议使用有线连接
175
+ - 预计时间:10-30分钟(取决于网速)
176
+
177
+ 4. **仓库设置**
178
+ - 建议设置为 Public 以便团队使用
179
+ - 添加适当的 tags(如:mt5, emotion-analysis, chinese)
180
+
181
+ ---
182
+
183
+ ## 📝 模型信息
184
+
185
+ - **模型名称**: Emotion Summary Model
186
+ - **基础模型**: google/mt5-small
187
+ - **任务类型**: Text2Text Generation
188
+ - **语言**: Chinese (中文)
189
+ - **用途**: 从心理咨询案例中提取情感信息
190
+ - **训练数据**: 8,000条心理咨询对话
191
+ - **模型大小**: ~1.2 GB
192
+
193
+ ---
194
+
195
+ ## ✅ 验证上传成功
196
+
197
+ 上传完成后,访问您的模型页面:
198
+ ```
199
+ https://huggingface.co/<your-username>/emotion-summary-mt5
200
+ ```
201
+
202
+ 检查:
203
+ - ✓ 所有10个文件都存��
204
+ - ✓ model.safetensors 显示为 LFS 文件
205
+ - ✓ README.md 正确显示
206
+ - ✓ 可以在 "Files and versions" 中看到所有文件
207
+
208
+ ---
209
+
210
+ ## 🎯 测试模型
211
+
212
+ 上传成功后,可以使用以下代码测试:
213
+
214
+ ```python
215
+ from transformers import MT5ForConditionalGeneration, MT5Tokenizer
216
+
217
+ # 从 Hugging Face 加载
218
+ model_name = "your-username/emotion-summary-mt5"
219
+ model = MT5ForConditionalGeneration.from_pretrained(model_name)
220
+ tokenizer = MT5Tokenizer.from_pretrained(model_name)
221
+
222
+ # 测试推理
223
+ input_text = "Extract cause from: ..."
224
+ inputs = tokenizer(input_text, return_tensors="pt", max_length=512, truncation=True)
225
+ outputs = model.generate(**inputs, max_length=256, num_beams=4)
226
+ result = tokenizer.decode(outputs[0], skip_special_tokens=True)
227
+ print(result)
228
+ ```
229
+
230
+ ---
231
+
232
+ ## 📞 问题排查
233
+
234
+ ### 问题1:上传失败 "file too large"
235
+ **解决方案**:确保安装并启用了 Git LFS
236
+ ```bash
237
+ git lfs install
238
+ git lfs track "*.safetensors"
239
+ ```
240
+
241
+ ### 问题2:权限错误
242
+ **解决方案**:检查 Hugging Face token 是否有 Write 权限
243
+
244
+ ### 问题3:上传中断
245
+ **解决方案**:Git 会自动续传,只需重新运行 `git push`
246
+
247
+ ---
248
+
249
+ ## 📚 相关文档
250
+
251
+ - Hugging Face 上传指南:https://huggingface.co/docs/hub/models-uploading
252
+ - Git LFS 文档:https://git-lfs.github.com/
253
+ - mT5 模型:https://huggingface.co/docs/transformers/model_doc/mt5
254
+
255
+ ---
256
+
257
+ 创建日期:2025-10-31
258
+ 模型版本:v1.0
259
+
emotion summary/config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MT5ForConditionalGeneration"
4
+ ],
5
+ "classifier_dropout": 0.0,
6
+ "d_ff": 1024,
7
+ "d_kv": 64,
8
+ "d_model": 512,
9
+ "decoder_start_token_id": 0,
10
+ "dense_act_fn": "gelu_new",
11
+ "dropout_rate": 0.1,
12
+ "dtype": "float32",
13
+ "eos_token_id": 1,
14
+ "feed_forward_proj": "gated-gelu",
15
+ "initializer_factor": 1.0,
16
+ "is_encoder_decoder": true,
17
+ "is_gated_act": true,
18
+ "layer_norm_epsilon": 1e-06,
19
+ "model_type": "mt5",
20
+ "num_decoder_layers": 8,
21
+ "num_heads": 6,
22
+ "num_layers": 8,
23
+ "pad_token_id": 0,
24
+ "relative_attention_max_distance": 128,
25
+ "relative_attention_num_buckets": 32,
26
+ "tie_word_embeddings": false,
27
+ "tokenizer_class": "T5Tokenizer",
28
+ "transformers_version": "4.57.1",
29
+ "use_cache": true,
30
+ "vocab_size": 250112
31
+ }
emotion summary/generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": [
5
+ 1
6
+ ],
7
+ "pad_token_id": 0,
8
+ "transformers_version": "4.57.1"
9
+ }
emotion summary/inference_example.py ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ Emotion Summary Model - 推理示例
5
+ """
6
+
7
+ from transformers import MT5ForConditionalGeneration, MT5Tokenizer
8
+ import json
9
+ import torch
10
+
11
+ def load_model(model_path="./emotion_summary"):
12
+ """加载模型和tokenizer"""
13
+ print(f"Loading model from {model_path}...")
14
+ model = MT5ForConditionalGeneration.from_pretrained(model_path)
15
+ tokenizer = MT5Tokenizer.from_pretrained(model_path)
16
+
17
+ # 如果有GPU就使用GPU
18
+ device = "cuda" if torch.cuda.is_available() else "cpu"
19
+ model = model.to(device)
20
+ model.eval()
21
+
22
+ print(f"Model loaded on {device}")
23
+ return model, tokenizer, device
24
+
25
+ def summarize_case(model, tokenizer, device, case_data, field="cause"):
26
+ """
27
+ 对案例进行总结
28
+
29
+ Args:
30
+ model: 模型
31
+ tokenizer: tokenizer
32
+ device: 设备
33
+ case_data: 案例数据(字典)
34
+ field: 要生成的字段 (cause/symptoms/treatment_process/illness_characteristics/treatment_effect)
35
+
36
+ Returns:
37
+ 生成的总结文本
38
+ """
39
+
40
+ # 构建输入
41
+ case_desc = " ".join(case_data.get("case_description", []))
42
+ consultation = " ".join(case_data.get("consultation_process", []))
43
+ reflection = case_data.get("experience_and_reflection", "")
44
+
45
+ full_text = f"Case: {case_desc}\nConsultation: {consultation}\nReflection: {reflection}"
46
+
47
+ # 根据字段构建不同的prompt
48
+ prompts = {
49
+ "cause": f"Extract cause from: {full_text}",
50
+ "symptoms": f"Extract symptoms from: {full_text}",
51
+ "treatment_process": f"Extract treatment process from: {full_text}",
52
+ "illness_characteristics": f"Extract illness characteristics from: {full_text}",
53
+ "treatment_effect": f"Extract treatment effect from: {full_text}"
54
+ }
55
+
56
+ input_text = prompts.get(field, full_text)
57
+
58
+ # 编码
59
+ input_ids = tokenizer.encode(
60
+ input_text,
61
+ return_tensors="pt",
62
+ max_length=512,
63
+ truncation=True
64
+ ).to(device)
65
+
66
+ # 生成
67
+ with torch.no_grad():
68
+ output_ids = model.generate(
69
+ input_ids,
70
+ max_length=256,
71
+ num_beams=4,
72
+ early_stopping=True,
73
+ no_repeat_ngram_size=3
74
+ )
75
+
76
+ # 解码
77
+ output_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
78
+ return output_text
79
+
80
+ def process_test_file(input_file, output_file, model_path="./emotion_summary"):
81
+ """处理测试文件"""
82
+
83
+ # 加载模型
84
+ model, tokenizer, device = load_model(model_path)
85
+
86
+ # 读取测试数据
87
+ test_data = []
88
+ with open(input_file, 'r', encoding='utf-8') as f:
89
+ for line in f:
90
+ if line.strip():
91
+ test_data.append(json.loads(line))
92
+
93
+ print(f"\nProcessing {len(test_data)} samples...")
94
+
95
+ results = []
96
+ for i, sample in enumerate(test_data, 1):
97
+ print(f" [{i}/{len(test_data)}] Processing ID: {sample['id']}...")
98
+
99
+ result = {
100
+ "id": sample["id"],
101
+ "predicted_cause": summarize_case(model, tokenizer, device, sample, "cause"),
102
+ "predicted_symptoms": summarize_case(model, tokenizer, device, sample, "symptoms"),
103
+ "predicted_treatment_process": summarize_case(model, tokenizer, device, sample, "treatment_process"),
104
+ "predicted_illness_Characteristics": summarize_case(model, tokenizer, device, sample, "illness_characteristics"),
105
+ "predicted_treatment_effect": summarize_case(model, tokenizer, device, sample, "treatment_effect")
106
+ }
107
+
108
+ results.append(result)
109
+
110
+ # 保存结果
111
+ with open(output_file, 'w', encoding='utf-8') as f:
112
+ for result in results:
113
+ json.dump(result, f, ensure_ascii=False)
114
+ f.write('\n')
115
+
116
+ print(f"\n✓ Results saved to {output_file}")
117
+
118
+ if __name__ == "__main__":
119
+ # 示例:处理单个案例
120
+ sample_case = {
121
+ "id": 1,
122
+ "case_description": ["A 34-year-old male with health anxiety..."],
123
+ "consultation_process": ["The consultation began with..."],
124
+ "experience_and_reflection": "This case demonstrates..."
125
+ }
126
+
127
+ model, tokenizer, device = load_model()
128
+
129
+ print("\nGenerating summaries...")
130
+ cause = summarize_case(model, tokenizer, device, sample_case, "cause")
131
+ print(f"\nCause: {cause}")
132
+
133
+ # 如果要处理整个测试文件,取消下面的注释:
134
+ # process_test_file("data/test/Emotion_Summary.jsonl", "results/predictions.jsonl")
emotion summary/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:192e5d6cd4552b6a6925ad5a682b43ced7a3717c6099284470652f90c2a9fa5b
3
+ size 1200729512
emotion summary/special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eos_token": {
3
+ "content": "</s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "pad_token": {
10
+ "content": "<pad>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
emotion summary/spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef78f86560d809067d12bac6c09f19a462cb3af3f54d2b8acbba26e1433125d6
3
+ size 4309802
emotion summary/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f47eb5c71090da540a205198ab25536a203255a5d4500e51f861050302a22c1
3
+ size 16350028
emotion summary/tokenizer_config.json ADDED
@@ -0,0 +1,840 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<pad>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "</s>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<unk>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "250000": {
29
+ "content": "▁<extra_id_99>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": false
35
+ },
36
+ "250001": {
37
+ "content": "▁<extra_id_98>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": false
43
+ },
44
+ "250002": {
45
+ "content": "▁<extra_id_97>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": false
51
+ },
52
+ "250003": {
53
+ "content": "▁<extra_id_96>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": false
59
+ },
60
+ "250004": {
61
+ "content": "▁<extra_id_95>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": false
67
+ },
68
+ "250005": {
69
+ "content": "▁<extra_id_94>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": false
75
+ },
76
+ "250006": {
77
+ "content": "▁<extra_id_93>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": false
83
+ },
84
+ "250007": {
85
+ "content": "▁<extra_id_92>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": false
91
+ },
92
+ "250008": {
93
+ "content": "▁<extra_id_91>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": false
99
+ },
100
+ "250009": {
101
+ "content": "▁<extra_id_90>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": false
107
+ },
108
+ "250010": {
109
+ "content": "▁<extra_id_89>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": false
115
+ },
116
+ "250011": {
117
+ "content": "▁<extra_id_88>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "250012": {
125
+ "content": "▁<extra_id_87>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "250013": {
133
+ "content": "▁<extra_id_86>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "250014": {
141
+ "content": "▁<extra_id_85>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "250015": {
149
+ "content": "▁<extra_id_84>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "250016": {
157
+ "content": "▁<extra_id_83>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "250017": {
165
+ "content": "▁<extra_id_82>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "250018": {
173
+ "content": "▁<extra_id_81>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ },
180
+ "250019": {
181
+ "content": "▁<extra_id_80>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": false
187
+ },
188
+ "250020": {
189
+ "content": "▁<extra_id_79>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": false
195
+ },
196
+ "250021": {
197
+ "content": "▁<extra_id_78>",
198
+ "lstrip": false,
199
+ "normalized": false,
200
+ "rstrip": false,
201
+ "single_word": false,
202
+ "special": false
203
+ },
204
+ "250022": {
205
+ "content": "▁<extra_id_77>",
206
+ "lstrip": false,
207
+ "normalized": false,
208
+ "rstrip": false,
209
+ "single_word": false,
210
+ "special": false
211
+ },
212
+ "250023": {
213
+ "content": "▁<extra_id_76>",
214
+ "lstrip": false,
215
+ "normalized": false,
216
+ "rstrip": false,
217
+ "single_word": false,
218
+ "special": false
219
+ },
220
+ "250024": {
221
+ "content": "▁<extra_id_75>",
222
+ "lstrip": false,
223
+ "normalized": false,
224
+ "rstrip": false,
225
+ "single_word": false,
226
+ "special": false
227
+ },
228
+ "250025": {
229
+ "content": "▁<extra_id_74>",
230
+ "lstrip": false,
231
+ "normalized": false,
232
+ "rstrip": false,
233
+ "single_word": false,
234
+ "special": false
235
+ },
236
+ "250026": {
237
+ "content": "▁<extra_id_73>",
238
+ "lstrip": false,
239
+ "normalized": false,
240
+ "rstrip": false,
241
+ "single_word": false,
242
+ "special": false
243
+ },
244
+ "250027": {
245
+ "content": "▁<extra_id_72>",
246
+ "lstrip": false,
247
+ "normalized": false,
248
+ "rstrip": false,
249
+ "single_word": false,
250
+ "special": false
251
+ },
252
+ "250028": {
253
+ "content": "▁<extra_id_71>",
254
+ "lstrip": false,
255
+ "normalized": false,
256
+ "rstrip": false,
257
+ "single_word": false,
258
+ "special": false
259
+ },
260
+ "250029": {
261
+ "content": "▁<extra_id_70>",
262
+ "lstrip": false,
263
+ "normalized": false,
264
+ "rstrip": false,
265
+ "single_word": false,
266
+ "special": false
267
+ },
268
+ "250030": {
269
+ "content": "▁<extra_id_69>",
270
+ "lstrip": false,
271
+ "normalized": false,
272
+ "rstrip": false,
273
+ "single_word": false,
274
+ "special": false
275
+ },
276
+ "250031": {
277
+ "content": "▁<extra_id_68>",
278
+ "lstrip": false,
279
+ "normalized": false,
280
+ "rstrip": false,
281
+ "single_word": false,
282
+ "special": false
283
+ },
284
+ "250032": {
285
+ "content": "▁<extra_id_67>",
286
+ "lstrip": false,
287
+ "normalized": false,
288
+ "rstrip": false,
289
+ "single_word": false,
290
+ "special": false
291
+ },
292
+ "250033": {
293
+ "content": "▁<extra_id_66>",
294
+ "lstrip": false,
295
+ "normalized": false,
296
+ "rstrip": false,
297
+ "single_word": false,
298
+ "special": false
299
+ },
300
+ "250034": {
301
+ "content": "▁<extra_id_65>",
302
+ "lstrip": false,
303
+ "normalized": false,
304
+ "rstrip": false,
305
+ "single_word": false,
306
+ "special": false
307
+ },
308
+ "250035": {
309
+ "content": "▁<extra_id_64>",
310
+ "lstrip": false,
311
+ "normalized": false,
312
+ "rstrip": false,
313
+ "single_word": false,
314
+ "special": false
315
+ },
316
+ "250036": {
317
+ "content": "▁<extra_id_63>",
318
+ "lstrip": false,
319
+ "normalized": false,
320
+ "rstrip": false,
321
+ "single_word": false,
322
+ "special": false
323
+ },
324
+ "250037": {
325
+ "content": "▁<extra_id_62>",
326
+ "lstrip": false,
327
+ "normalized": false,
328
+ "rstrip": false,
329
+ "single_word": false,
330
+ "special": false
331
+ },
332
+ "250038": {
333
+ "content": "▁<extra_id_61>",
334
+ "lstrip": false,
335
+ "normalized": false,
336
+ "rstrip": false,
337
+ "single_word": false,
338
+ "special": false
339
+ },
340
+ "250039": {
341
+ "content": "▁<extra_id_60>",
342
+ "lstrip": false,
343
+ "normalized": false,
344
+ "rstrip": false,
345
+ "single_word": false,
346
+ "special": false
347
+ },
348
+ "250040": {
349
+ "content": "▁<extra_id_59>",
350
+ "lstrip": false,
351
+ "normalized": false,
352
+ "rstrip": false,
353
+ "single_word": false,
354
+ "special": false
355
+ },
356
+ "250041": {
357
+ "content": "▁<extra_id_58>",
358
+ "lstrip": false,
359
+ "normalized": false,
360
+ "rstrip": false,
361
+ "single_word": false,
362
+ "special": false
363
+ },
364
+ "250042": {
365
+ "content": "▁<extra_id_57>",
366
+ "lstrip": false,
367
+ "normalized": false,
368
+ "rstrip": false,
369
+ "single_word": false,
370
+ "special": false
371
+ },
372
+ "250043": {
373
+ "content": "▁<extra_id_56>",
374
+ "lstrip": false,
375
+ "normalized": false,
376
+ "rstrip": false,
377
+ "single_word": false,
378
+ "special": false
379
+ },
380
+ "250044": {
381
+ "content": "▁<extra_id_55>",
382
+ "lstrip": false,
383
+ "normalized": false,
384
+ "rstrip": false,
385
+ "single_word": false,
386
+ "special": false
387
+ },
388
+ "250045": {
389
+ "content": "▁<extra_id_54>",
390
+ "lstrip": false,
391
+ "normalized": false,
392
+ "rstrip": false,
393
+ "single_word": false,
394
+ "special": false
395
+ },
396
+ "250046": {
397
+ "content": "▁<extra_id_53>",
398
+ "lstrip": false,
399
+ "normalized": false,
400
+ "rstrip": false,
401
+ "single_word": false,
402
+ "special": false
403
+ },
404
+ "250047": {
405
+ "content": "▁<extra_id_52>",
406
+ "lstrip": false,
407
+ "normalized": false,
408
+ "rstrip": false,
409
+ "single_word": false,
410
+ "special": false
411
+ },
412
+ "250048": {
413
+ "content": "▁<extra_id_51>",
414
+ "lstrip": false,
415
+ "normalized": false,
416
+ "rstrip": false,
417
+ "single_word": false,
418
+ "special": false
419
+ },
420
+ "250049": {
421
+ "content": "▁<extra_id_50>",
422
+ "lstrip": false,
423
+ "normalized": false,
424
+ "rstrip": false,
425
+ "single_word": false,
426
+ "special": false
427
+ },
428
+ "250050": {
429
+ "content": "▁<extra_id_49>",
430
+ "lstrip": false,
431
+ "normalized": false,
432
+ "rstrip": false,
433
+ "single_word": false,
434
+ "special": false
435
+ },
436
+ "250051": {
437
+ "content": "▁<extra_id_48>",
438
+ "lstrip": false,
439
+ "normalized": false,
440
+ "rstrip": false,
441
+ "single_word": false,
442
+ "special": false
443
+ },
444
+ "250052": {
445
+ "content": "▁<extra_id_47>",
446
+ "lstrip": false,
447
+ "normalized": false,
448
+ "rstrip": false,
449
+ "single_word": false,
450
+ "special": false
451
+ },
452
+ "250053": {
453
+ "content": "▁<extra_id_46>",
454
+ "lstrip": false,
455
+ "normalized": false,
456
+ "rstrip": false,
457
+ "single_word": false,
458
+ "special": false
459
+ },
460
+ "250054": {
461
+ "content": "▁<extra_id_45>",
462
+ "lstrip": false,
463
+ "normalized": false,
464
+ "rstrip": false,
465
+ "single_word": false,
466
+ "special": false
467
+ },
468
+ "250055": {
469
+ "content": "▁<extra_id_44>",
470
+ "lstrip": false,
471
+ "normalized": false,
472
+ "rstrip": false,
473
+ "single_word": false,
474
+ "special": false
475
+ },
476
+ "250056": {
477
+ "content": "▁<extra_id_43>",
478
+ "lstrip": false,
479
+ "normalized": false,
480
+ "rstrip": false,
481
+ "single_word": false,
482
+ "special": false
483
+ },
484
+ "250057": {
485
+ "content": "▁<extra_id_42>",
486
+ "lstrip": false,
487
+ "normalized": false,
488
+ "rstrip": false,
489
+ "single_word": false,
490
+ "special": false
491
+ },
492
+ "250058": {
493
+ "content": "▁<extra_id_41>",
494
+ "lstrip": false,
495
+ "normalized": false,
496
+ "rstrip": false,
497
+ "single_word": false,
498
+ "special": false
499
+ },
500
+ "250059": {
501
+ "content": "▁<extra_id_40>",
502
+ "lstrip": false,
503
+ "normalized": false,
504
+ "rstrip": false,
505
+ "single_word": false,
506
+ "special": false
507
+ },
508
+ "250060": {
509
+ "content": "▁<extra_id_39>",
510
+ "lstrip": false,
511
+ "normalized": false,
512
+ "rstrip": false,
513
+ "single_word": false,
514
+ "special": false
515
+ },
516
+ "250061": {
517
+ "content": "▁<extra_id_38>",
518
+ "lstrip": false,
519
+ "normalized": false,
520
+ "rstrip": false,
521
+ "single_word": false,
522
+ "special": false
523
+ },
524
+ "250062": {
525
+ "content": "▁<extra_id_37>",
526
+ "lstrip": false,
527
+ "normalized": false,
528
+ "rstrip": false,
529
+ "single_word": false,
530
+ "special": false
531
+ },
532
+ "250063": {
533
+ "content": "▁<extra_id_36>",
534
+ "lstrip": false,
535
+ "normalized": false,
536
+ "rstrip": false,
537
+ "single_word": false,
538
+ "special": false
539
+ },
540
+ "250064": {
541
+ "content": "▁<extra_id_35>",
542
+ "lstrip": false,
543
+ "normalized": false,
544
+ "rstrip": false,
545
+ "single_word": false,
546
+ "special": false
547
+ },
548
+ "250065": {
549
+ "content": "▁<extra_id_34>",
550
+ "lstrip": false,
551
+ "normalized": false,
552
+ "rstrip": false,
553
+ "single_word": false,
554
+ "special": false
555
+ },
556
+ "250066": {
557
+ "content": "▁<extra_id_33>",
558
+ "lstrip": false,
559
+ "normalized": false,
560
+ "rstrip": false,
561
+ "single_word": false,
562
+ "special": false
563
+ },
564
+ "250067": {
565
+ "content": "▁<extra_id_32>",
566
+ "lstrip": false,
567
+ "normalized": false,
568
+ "rstrip": false,
569
+ "single_word": false,
570
+ "special": false
571
+ },
572
+ "250068": {
573
+ "content": "▁<extra_id_31>",
574
+ "lstrip": false,
575
+ "normalized": false,
576
+ "rstrip": false,
577
+ "single_word": false,
578
+ "special": false
579
+ },
580
+ "250069": {
581
+ "content": "▁<extra_id_30>",
582
+ "lstrip": false,
583
+ "normalized": false,
584
+ "rstrip": false,
585
+ "single_word": false,
586
+ "special": false
587
+ },
588
+ "250070": {
589
+ "content": "▁<extra_id_29>",
590
+ "lstrip": false,
591
+ "normalized": false,
592
+ "rstrip": false,
593
+ "single_word": false,
594
+ "special": false
595
+ },
596
+ "250071": {
597
+ "content": "▁<extra_id_28>",
598
+ "lstrip": false,
599
+ "normalized": false,
600
+ "rstrip": false,
601
+ "single_word": false,
602
+ "special": false
603
+ },
604
+ "250072": {
605
+ "content": "▁<extra_id_27>",
606
+ "lstrip": false,
607
+ "normalized": false,
608
+ "rstrip": false,
609
+ "single_word": false,
610
+ "special": false
611
+ },
612
+ "250073": {
613
+ "content": "▁<extra_id_26>",
614
+ "lstrip": false,
615
+ "normalized": false,
616
+ "rstrip": false,
617
+ "single_word": false,
618
+ "special": false
619
+ },
620
+ "250074": {
621
+ "content": "▁<extra_id_25>",
622
+ "lstrip": false,
623
+ "normalized": false,
624
+ "rstrip": false,
625
+ "single_word": false,
626
+ "special": false
627
+ },
628
+ "250075": {
629
+ "content": "▁<extra_id_24>",
630
+ "lstrip": false,
631
+ "normalized": false,
632
+ "rstrip": false,
633
+ "single_word": false,
634
+ "special": false
635
+ },
636
+ "250076": {
637
+ "content": "▁<extra_id_23>",
638
+ "lstrip": false,
639
+ "normalized": false,
640
+ "rstrip": false,
641
+ "single_word": false,
642
+ "special": false
643
+ },
644
+ "250077": {
645
+ "content": "▁<extra_id_22>",
646
+ "lstrip": false,
647
+ "normalized": false,
648
+ "rstrip": false,
649
+ "single_word": false,
650
+ "special": false
651
+ },
652
+ "250078": {
653
+ "content": "▁<extra_id_21>",
654
+ "lstrip": false,
655
+ "normalized": false,
656
+ "rstrip": false,
657
+ "single_word": false,
658
+ "special": false
659
+ },
660
+ "250079": {
661
+ "content": "▁<extra_id_20>",
662
+ "lstrip": false,
663
+ "normalized": false,
664
+ "rstrip": false,
665
+ "single_word": false,
666
+ "special": false
667
+ },
668
+ "250080": {
669
+ "content": "▁<extra_id_19>",
670
+ "lstrip": false,
671
+ "normalized": false,
672
+ "rstrip": false,
673
+ "single_word": false,
674
+ "special": false
675
+ },
676
+ "250081": {
677
+ "content": "▁<extra_id_18>",
678
+ "lstrip": false,
679
+ "normalized": false,
680
+ "rstrip": false,
681
+ "single_word": false,
682
+ "special": false
683
+ },
684
+ "250082": {
685
+ "content": "▁<extra_id_17>",
686
+ "lstrip": false,
687
+ "normalized": false,
688
+ "rstrip": false,
689
+ "single_word": false,
690
+ "special": false
691
+ },
692
+ "250083": {
693
+ "content": "▁<extra_id_16>",
694
+ "lstrip": false,
695
+ "normalized": false,
696
+ "rstrip": false,
697
+ "single_word": false,
698
+ "special": false
699
+ },
700
+ "250084": {
701
+ "content": "▁<extra_id_15>",
702
+ "lstrip": false,
703
+ "normalized": false,
704
+ "rstrip": false,
705
+ "single_word": false,
706
+ "special": false
707
+ },
708
+ "250085": {
709
+ "content": "▁<extra_id_14>",
710
+ "lstrip": false,
711
+ "normalized": false,
712
+ "rstrip": false,
713
+ "single_word": false,
714
+ "special": false
715
+ },
716
+ "250086": {
717
+ "content": "▁<extra_id_13>",
718
+ "lstrip": false,
719
+ "normalized": false,
720
+ "rstrip": false,
721
+ "single_word": false,
722
+ "special": false
723
+ },
724
+ "250087": {
725
+ "content": "▁<extra_id_12>",
726
+ "lstrip": false,
727
+ "normalized": false,
728
+ "rstrip": false,
729
+ "single_word": false,
730
+ "special": false
731
+ },
732
+ "250088": {
733
+ "content": "▁<extra_id_11>",
734
+ "lstrip": false,
735
+ "normalized": false,
736
+ "rstrip": false,
737
+ "single_word": false,
738
+ "special": false
739
+ },
740
+ "250089": {
741
+ "content": "▁<extra_id_10>",
742
+ "lstrip": false,
743
+ "normalized": false,
744
+ "rstrip": false,
745
+ "single_word": false,
746
+ "special": false
747
+ },
748
+ "250090": {
749
+ "content": "▁<extra_id_9>",
750
+ "lstrip": false,
751
+ "normalized": false,
752
+ "rstrip": false,
753
+ "single_word": false,
754
+ "special": false
755
+ },
756
+ "250091": {
757
+ "content": "▁<extra_id_8>",
758
+ "lstrip": false,
759
+ "normalized": false,
760
+ "rstrip": false,
761
+ "single_word": false,
762
+ "special": false
763
+ },
764
+ "250092": {
765
+ "content": "▁<extra_id_7>",
766
+ "lstrip": false,
767
+ "normalized": false,
768
+ "rstrip": false,
769
+ "single_word": false,
770
+ "special": false
771
+ },
772
+ "250093": {
773
+ "content": "▁<extra_id_6>",
774
+ "lstrip": false,
775
+ "normalized": false,
776
+ "rstrip": false,
777
+ "single_word": false,
778
+ "special": false
779
+ },
780
+ "250094": {
781
+ "content": "▁<extra_id_5>",
782
+ "lstrip": false,
783
+ "normalized": false,
784
+ "rstrip": false,
785
+ "single_word": false,
786
+ "special": false
787
+ },
788
+ "250095": {
789
+ "content": "▁<extra_id_4>",
790
+ "lstrip": false,
791
+ "normalized": false,
792
+ "rstrip": false,
793
+ "single_word": false,
794
+ "special": false
795
+ },
796
+ "250096": {
797
+ "content": "▁<extra_id_3>",
798
+ "lstrip": false,
799
+ "normalized": false,
800
+ "rstrip": false,
801
+ "single_word": false,
802
+ "special": false
803
+ },
804
+ "250097": {
805
+ "content": "▁<extra_id_2>",
806
+ "lstrip": false,
807
+ "normalized": false,
808
+ "rstrip": false,
809
+ "single_word": false,
810
+ "special": false
811
+ },
812
+ "250098": {
813
+ "content": "▁<extra_id_1>",
814
+ "lstrip": false,
815
+ "normalized": false,
816
+ "rstrip": false,
817
+ "single_word": false,
818
+ "special": false
819
+ },
820
+ "250099": {
821
+ "content": "▁<extra_id_0>",
822
+ "lstrip": false,
823
+ "normalized": false,
824
+ "rstrip": false,
825
+ "single_word": false,
826
+ "special": false
827
+ }
828
+ },
829
+ "additional_special_tokens": [],
830
+ "clean_up_tokenization_spaces": false,
831
+ "eos_token": "</s>",
832
+ "extra_ids": 0,
833
+ "extra_special_tokens": {},
834
+ "legacy": true,
835
+ "model_max_length": 1000000000000000019884624838656,
836
+ "pad_token": "<pad>",
837
+ "sp_model_kwargs": {},
838
+ "tokenizer_class": "T5Tokenizer",
839
+ "unk_token": "<unk>"
840
+ }
emotion summary/文件说明.md ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Emotion Summary 任务 - Hugging Face 提交文件说明
2
+
3
+ ## 📁 文件夹位置
4
+ `C:\Users\xsz20\project(self)\LongEmotion\emotion_summary_huggingface\`
5
+
6
+ ---
7
+
8
+ ## 📋 文件清单(共11个文件)
9
+
10
+ ### 1. 模型文件
11
+ - **model.safetensors** (1,145.1 MB)
12
+ - mT5-small 微调后的模型权重
13
+ - SafeTensors 格式(更安全、更快)
14
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/model.safetensors`
15
+
16
+ ### 2. 配置文件
17
+ - **config.json** (~2 KB)
18
+ - 模型架构配置
19
+ - 定义层数、隐藏层大小等参数
20
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/config.json`
21
+
22
+ - **generation_config.json** (~200 Bytes)
23
+ - 文本生成配置
24
+ - 定义 beam_size、max_length 等生成参数
25
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/generation_config.json`
26
+
27
+ ### 3. Tokenizer 文件
28
+ - **spiece.model** (4.11 MB)
29
+ - SentencePiece 分词模型
30
+ - mT5 使用的多语言分词器
31
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/spiece.model`
32
+
33
+ - **tokenizer.json** (15.59 MB)
34
+ - 完整的 tokenizer 配置
35
+ - 包含词表、特殊token等
36
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/tokenizer.json`
37
+
38
+ - **tokenizer_config.json** (20 KB)
39
+ - Tokenizer 参数配置
40
+ - 定义特殊token、最大长度等
41
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/tokenizer_config.json`
42
+
43
+ - **special_tokens_map.json** (280 Bytes)
44
+ - 特殊 token 映射
45
+ - 定义 [PAD], [UNK], [CLS], [SEP], [MASK] 等
46
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/special_tokens_map.json`
47
+
48
+ ### 4. 文档文件
49
+ - **README.md** (~3 KB)
50
+ - 模型卡片(Model Card)
51
+ - 包含模型描述、使用方法、性能指标
52
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/README.md`
53
+
54
+ - **UPLOAD_GUIDE.md** (~6 KB)
55
+ - 上传指南(新创建)
56
+ - 详细的 Hugging Face 上传步骤
57
+ - 包含三种上传方法
58
+
59
+ - **文件说明.md** (本文件)
60
+ - 文件清单和说明
61
+ - 帮助理解每个文件的用途
62
+
63
+ ### 5. 代码文件
64
+ - **inference_example.py** (~4 KB)
65
+ - 推理示例代码
66
+ - 展示如何加载和使用模型
67
+ - 包含单样本和批量处理示例
68
+ - 来源:`Emotion Summary (ES)/model/emotion_summary/inference_example.py`
69
+
70
+ ### 6. Git LFS 配置
71
+ - **.gitattributes**
72
+ - Git LFS 配置文件
73
+ - 标记大文件使用 LFS 上传
74
+ - 新创建,用于 Hugging Face 上传
75
+
76
+ ---
77
+
78
+ ## 📊 文件大小统计
79
+
80
+ | 类型 | 文件数 | 总大小 |
81
+ |------|--------|--------|
82
+ | 模型权重 | 1 | 1,145.1 MB |
83
+ | Tokenizer | 3 | 19.7 MB |
84
+ | 配置文件 | 4 | ~25 KB |
85
+ | 文档 | 3 | ~10 KB |
86
+ | 代码 | 1 | ~4 KB |
87
+ | **总计** | **11** | **~1.16 GB** |
88
+
89
+ ---
90
+
91
+ ## 🎯 对照 Classification 任务结构
92
+
93
+ 根据您提供的 classification 任务的 Hugging Face 截图,两个任务的文件对应关系:
94
+
95
+ | Classification 文件 | Emotion Summary 对应文件 | 说明 |
96
+ |---------------------|-------------------------|------|
97
+ | config.json | ✅ config.json | 模型配置 |
98
+ | model.safetensors | ✅ model.safetensors | 模型权重 |
99
+ | special_tokens_map.json | ✅ special_tokens_map.json | 特殊token |
100
+ | tokenizer.json | ✅ tokenizer.json | Tokenizer配置 |
101
+ | tokenizer_config.json | ✅ tokenizer_config.json | Tokenizer参数 |
102
+ | vocab.json | ✅ spiece.model | 词表(不同格式) |
103
+ | merges.txt | ❌ 无需此文件 | mT5使用SentencePiece,不需要merges |
104
+ | .gitattributes | ✅ .gitattributes | Git LFS配置 |
105
+
106
+ **额外文件(ES任务特有):**
107
+ - ✅ generation_config.json - 生成任务配置
108
+ - ✅ README.md - 模型文档
109
+ - ✅ inference_example.py - 使用示例
110
+ - ✅ UPLOAD_GUIDE.md - 上传指南
111
+
112
+ ---
113
+
114
+ ## ✅ 完整性检查
115
+
116
+ 所有必需文件均已包含:
117
+ - ✅ 模型权重文件
118
+ - ✅ 模型配置文件
119
+ - ✅ Tokenizer 全套文件
120
+ - ✅ 文档和示例代码
121
+ - ✅ Git LFS 配置
122
+
123
+ **可以安全上传到 Hugging Face!**
124
+
125
+ ---
126
+
127
+ ## 📍 原始文件位置
128
+
129
+ 所有文件来源于:
130
+ ```
131
+ Emotion Summary (ES)/model/emotion_summary/
132
+ ```
133
+
134
+ 该文件夹包含训练完成的 mT5-small 模型,已在8000条心理咨询案例上微调。
135
+
136
+ ---
137
+
138
+ ## 🚀 下一步操作
139
+
140
+ 1. ✅ **文件已准备完毕** - 所有文件已复制到 `emotion_summary_huggingface` 文件夹
141
+ 2. ⏭️ **上传到 Hugging Face** - 参考 `UPLOAD_GUIDE.md` 中的详细步骤
142
+ 3. ⏭️ **测试模型** - 上传后使用 `inference_example.py` 测试
143
+
144
+ ---
145
+
146
+ ## 📞 技术支持
147
+
148
+ 如有问题,请查看:
149
+ - `UPLOAD_GUIDE.md` - 详细上传指南
150
+ - `README.md` - 模型使用说明
151
+ - `inference_example.py` - 代码示例
152
+
153
+ ---
154
+
155
+ 创建时间:2025-10-31 20:10
156
+ 任务:Emotion Summary (ES)
157
+ 基础模型:google/mt5-small
158
+ 总文件数:11个
159
+ 总大小:~1.16 GB
160
+