Skip to content
Snippets Groups Projects
Commit fe99a921 authored by Julien Breton's avatar Julien Breton
Browse files

refactor project

parent f9933398
Branches
No related tags found
No related merge requests found
......@@ -3,11 +3,11 @@ import json
data_path = "../../results/LLM/GPT-4/GPT-4_zero_shot_answers.json"
result_path= "../../results/LLM/GPT-4/GPT-4_zero_shot_results.json"
#data_path = "../../results/Mixtral-8x7b/MIXTRAL_zero_shot_cleaned.json"
#result_path="../../results/Mixtral-8x7b/MIXTRAL_zero_shot_results.json"
#data_path = "../../results/LLM/Mixtral-8x7b/MIXTRAL_zero_shot_cleaned.json"
#result_path="../../results/LLM/Mixtral-8x7b/MIXTRAL_zero_shot_results.json"
#data_path = "../../results/Mistral-7b/MISTRAL_zero_shot_cleaned.json"
#result_path="../../results/Mistral-7b/MISTRAL_zero_shot_results.json"
#data_path = "../../results/LLM/Mistral-7b/MISTRAL_zero_shot_cleaned.json"
#result_path="../../results/LLM/Mistral-7b/MISTRAL_zero_shot_results.json"
with open('../../data/evalQS.json', 'r') as fichier:
......
......@@ -3,8 +3,8 @@ import json, re
input_path = "../../results/LLM/Mistral-7b/MISTRAL_zero_shot_raw_answers.json"
output_path = "../../results/LLM/Mistral-7b/MISTRAL_zero_shot_cleaned.json"
#input_path = "../../results/Mixtral-8x7b/MIXTRAL_zero_shot_raw_answers.json"
#output_path = "../../results/Mixtral-8x7b/MIXTRAL_zero_shot_cleaned.json"
#input_path = "../../results/LLM/Mixtral-8x7b/MIXTRAL_zero_shot_raw_answers.json"
#output_path = "../../results/LLM/Mixtral-8x7b/MIXTRAL_zero_shot_cleaned.json"
with open(input_path) as file:
data = json.load(file)
......
......@@ -58,7 +58,7 @@ for sentence in loaded:
i += 1
with open('../../results/Mistral-7b/MISTRAL_zero_shot_raw_answers.json', 'w', encoding='utf-8') as file:
with open('../../results/LLM/Mistral-7b/MISTRAL_zero_shot_raw_answers.json', 'w', encoding='utf-8') as file:
json.dump(output, file) # in 44:36.6 (0.08/s)
print("========== Program finished ==========")
\ No newline at end of file
......@@ -58,7 +58,7 @@ for sentence in loaded:
output[sentence] = res[i][0]["generated_text"]
i += 1
with open('../../results/Mixtral-8x7b/MIXTRAL_zero_shot_raw_answers.json', 'w', encoding='utf-8') as file:
with open('../../results/LLM/Mixtral-8x7b/MIXTRAL_zero_shot_raw_answers.json', 'w', encoding='utf-8') as file:
json.dump(output, file) # in 44:36.6 (0.08/s)
print("========== Program finished ==========")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment