1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user