Merge pull request #83 from chg0901/patch-6
Update zhipuai_gen_data.py 修改遍历顺序, 先遍历领域area再遍历心情emotions
This commit is contained in:
		
						commit
						de3f6658b6
					
				| @ -73,8 +73,8 @@ if __name__ == '__main__': | |||||||
|     ai_tool = 'zhipuai' |     ai_tool = 'zhipuai' | ||||||
| 
 | 
 | ||||||
|     conversation_lis = [] |     conversation_lis = [] | ||||||
|     for emo in emotions_lis: |  | ||||||
|     for area in areas_of_life: |     for area in areas_of_life: | ||||||
|  |         for emo in emotions_lis: | ||||||
|             gen_path = f'./{ai_tool}/{area}/{emo}.jsonl' |             gen_path = f'./{ai_tool}/{area}/{emo}.jsonl' | ||||||
| 
 | 
 | ||||||
|             for i in tqdm(range(100), desc='{emo}, {area}'.format(emo=emo, area=area)): |             for i in tqdm(range(100), desc='{emo}, {area}'.format(emo=emo, area=area)): | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 xzw
						xzw