- from hnsw_model_train import HNSW_Model_Train
- from ir_db_establish import Inverted_Index_Establish
- from formula_process import formula_init
- if __name__ == "__main__":
- # 向量检索模型训练
- hm_train = HNSW_Model_Train()
- hm_train()
- # 初始化倒排索引建立(n-grams为True)
- sql_etl = Inverted_Index_Establish(n_grams_flag=True)
- sql_etl()
- # 公式初始化数据训练
- formula_init()
|