codes
This commit is contained in:
@@ -178,7 +178,7 @@ password=os.getenv('HOST_160_PASS')
|
||||
# host=os.getenv('HOST_113')
|
||||
# password=os.getenv('HOST_113_PASS')
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ password=os.getenv('HOST_113_PASS')
|
||||
print(host)
|
||||
# print(password)
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
|
||||
|
||||
@@ -718,7 +718,7 @@ if __name__ == "__main__":
|
||||
|
||||
print('.... codes_import_from_excel ......', host)
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
|
||||
|
||||
@@ -835,7 +835,7 @@ if __name__ == "__main__":
|
||||
print( "---------------->>>>>>>>>>>>>>>", host )
|
||||
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
# extract_codes_diff_llm_tanghih( elastic, "mj_qa_section", "diff_llm_tanghih_2", body={})
|
||||
|
||||
@@ -373,7 +373,7 @@ def extract_domain_words(
|
||||
# host=os.getenv('HOST_113')
|
||||
# password=os.getenv('HOST_113_PASS')
|
||||
|
||||
# path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
# path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
# elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
# # positve
|
||||
|
||||
@@ -23,7 +23,7 @@ host=os.getenv('HOST_160')
|
||||
password=os.getenv('HOST_160_PASS')
|
||||
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
# elastic.exportToJsonForAI("output","mj_qa_section", "mj_qa_section.json", {}, ["content", "qanon_title", "ts_date", "other_info.full_path"])
|
||||
@@ -48,12 +48,13 @@ body = {
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"term":{
|
||||
"ai_code.label":"فناوری اطلاعات و ارتباطات"
|
||||
}
|
||||
}
|
||||
# ,
|
||||
# {
|
||||
# "term":{
|
||||
# "ai_code.label":"فناوری اطلاعات و ارتباطات"
|
||||
# }
|
||||
# }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -66,7 +67,7 @@ body = {
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
elastic.exportToJsonForAI("output","mj_qa_section", "section_codes_ertabatat.json", body, ["ai_codes", "ai_code", "content", "qanon_title", "qanon_id", "other_info.full_path"], "normal")
|
||||
# elastic.exportToJsonForAI("output","mj_qa_section", "section_codes_ai.json", body, ["ai_codes", "ai_code"], "dict")
|
||||
|
||||
body = {
|
||||
"sort": [
|
||||
|
||||
@@ -167,7 +167,7 @@ password=os.getenv('HOST_160_PASS')
|
||||
print(host)
|
||||
# print(password)
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ password = os.getenv("HOST_160_PASS")
|
||||
# host=os.getenv('HOST_113')
|
||||
# password=os.getenv('HOST_113_PASS')
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
|
||||
@@ -30,7 +30,7 @@ password=os.getenv('HOST_113_PASS')
|
||||
|
||||
print('.... majles_codes_update_steps ......', host)
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
#------------------------------------------------
|
||||
|
||||
@@ -176,7 +176,7 @@ if __name__ == "__main__":
|
||||
|
||||
print('.... codes_import_from_excel ......', host)
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user