diff --git a/.gitignore b/.gitignore index e996b22..4c470f6 100644 --- a/.gitignore +++ b/.gitignore @@ -332,4 +332,7 @@ test_results/ # Mercurial .hg/ -.cursor/ \ No newline at end of file +.cursor/ + +# Ai操作指引文件 +OperationGuidance/ \ No newline at end of file diff --git a/WeiboSentiment_SmallQwen/qwen3_lora_universal.py b/WeiboSentiment_SmallQwen/qwen3_lora_universal.py index 235a002..cb1f4da 100644 --- a/WeiboSentiment_SmallQwen/qwen3_lora_universal.py +++ b/WeiboSentiment_SmallQwen/qwen3_lora_universal.py @@ -139,6 +139,7 @@ class Qwen3LoRAUniversal(BaseQwenModel): instruction = f"请分析以下微博文本的情感倾向,回答'正面'或'负面'。\n\n文本:{text}\n\n情感:" response = sentiment + # 组合成完整的训练文本 full_text = f"{instruction}{response}{self.tokenizer.eos_token}"