This commit is contained in:
hsafaei
2025-07-29 10:29:49 +03:30
parent 5d87fed26e
commit f37eee49ba
11 changed files with 1941 additions and 82 deletions
+10 -5
View File
@@ -185,14 +185,14 @@ def moveClassifierAiCodes(elastic, index_name_o, data):
load_dotenv(dotenv_path='config.env')
# host=os.getenv('HOST_160')
# password=os.getenv('HOST_160_PASS')
host=os.getenv('HOST_160')
password=os.getenv('HOST_160_PASS')
# host=os.getenv('HOST_112')
# password=os.getenv('HOST_112_PASS')
host=os.getenv('HOST_113')
password=os.getenv('HOST_113_PASS')
# host=os.getenv('HOST_113')
# password=os.getenv('HOST_113_PASS')
# host=os.getenv('HOST_60')
# password=os.getenv('HOST_60_PASS')
@@ -211,7 +211,12 @@ elastic = ElasticHelper(host, password, "elastic", path_base_map)
# moveZipSimplifies(elastic,"mj_qa_section", "G:\Work\_majles\_data\simpilified_final.zip")
with open("./data/all_sections_classes.json", "r", encoding="utf-8") as f:
#-----نسخه قبلی اجرای مدل
# with open("./data/all_sections_classes.json", "r", encoding="utf-8") as f:
# classes = json.load(f)
#-----نسخه آخر اجرای مدل
with open("./data/all_sections_classes_new_140405.json", "r", encoding="utf-8") as f:
classes = json.load(f)
moveClassifierAiCodes(elastic,"mj_qa_section", classes)