├── .gitignore ├── LICENSE ├── README.md ├── data_preprocess ├── create_index_names.py ├── create_index_type.py ├── create_kg.py ├── create_ngram2entity.py ├── data_exploration.md ├── fetch.sh ├── preprocess.sh ├── preprocess_dataset.py ├── pretrain_embedding.py ├── trim_name_and_type.py └── utils.py └── models ├── TransE ├── README.md ├── dataset.py ├── main.py ├── model.py ├── save_embeddings.py ├── train.py └── train.sh ├── entity_detection ├── README.md ├── bilstm_crf.py ├── gen_seqlabeling_data.py ├── inference.py ├── test.py └── train.py ├── inference ├── README.md ├── inference.py ├── models.py └── start.sh ├── relation_network ├── README.md ├── relation_classify │ ├── gen_relclassify_data.py │ ├── rel_classify.py │ ├── test.py │ └── train.py └── relation_rank │ ├── gen_relrank_data.py │ ├── rel_rank.py │ ├── test.py │ └── train.py └── subject_network ├── README.md ├── sub_transe ├── gen_data.py ├── sub_transe.py ├── test.py └── train.py └── sub_typevec ├── gen_data.py ├── sub_typevec.py ├── test.py └── train.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/README.md -------------------------------------------------------------------------------- /data_preprocess/create_index_names.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/create_index_names.py -------------------------------------------------------------------------------- /data_preprocess/create_index_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/create_index_type.py -------------------------------------------------------------------------------- /data_preprocess/create_kg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/create_kg.py -------------------------------------------------------------------------------- /data_preprocess/create_ngram2entity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/create_ngram2entity.py -------------------------------------------------------------------------------- /data_preprocess/data_exploration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/data_exploration.md -------------------------------------------------------------------------------- /data_preprocess/fetch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/fetch.sh -------------------------------------------------------------------------------- /data_preprocess/preprocess.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/preprocess.sh -------------------------------------------------------------------------------- /data_preprocess/preprocess_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/preprocess_dataset.py -------------------------------------------------------------------------------- /data_preprocess/pretrain_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/pretrain_embedding.py -------------------------------------------------------------------------------- /data_preprocess/trim_name_and_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/trim_name_and_type.py -------------------------------------------------------------------------------- /data_preprocess/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/data_preprocess/utils.py -------------------------------------------------------------------------------- /models/TransE/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/TransE/README.md -------------------------------------------------------------------------------- /models/TransE/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/TransE/dataset.py -------------------------------------------------------------------------------- /models/TransE/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/TransE/main.py -------------------------------------------------------------------------------- /models/TransE/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/TransE/model.py -------------------------------------------------------------------------------- /models/TransE/save_embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/TransE/save_embeddings.py -------------------------------------------------------------------------------- /models/TransE/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/TransE/train.py -------------------------------------------------------------------------------- /models/TransE/train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/TransE/train.sh -------------------------------------------------------------------------------- /models/entity_detection/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/entity_detection/README.md -------------------------------------------------------------------------------- /models/entity_detection/bilstm_crf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/entity_detection/bilstm_crf.py -------------------------------------------------------------------------------- /models/entity_detection/gen_seqlabeling_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/entity_detection/gen_seqlabeling_data.py -------------------------------------------------------------------------------- /models/entity_detection/inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/entity_detection/inference.py -------------------------------------------------------------------------------- /models/entity_detection/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/entity_detection/test.py -------------------------------------------------------------------------------- /models/entity_detection/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/entity_detection/train.py -------------------------------------------------------------------------------- /models/inference/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/inference/README.md -------------------------------------------------------------------------------- /models/inference/inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/inference/inference.py -------------------------------------------------------------------------------- /models/inference/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/inference/models.py -------------------------------------------------------------------------------- /models/inference/start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/inference/start.sh -------------------------------------------------------------------------------- /models/relation_network/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/README.md -------------------------------------------------------------------------------- /models/relation_network/relation_classify/gen_relclassify_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/relation_classify/gen_relclassify_data.py -------------------------------------------------------------------------------- /models/relation_network/relation_classify/rel_classify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/relation_classify/rel_classify.py -------------------------------------------------------------------------------- /models/relation_network/relation_classify/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/relation_classify/test.py -------------------------------------------------------------------------------- /models/relation_network/relation_classify/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/relation_classify/train.py -------------------------------------------------------------------------------- /models/relation_network/relation_rank/gen_relrank_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/relation_rank/gen_relrank_data.py -------------------------------------------------------------------------------- /models/relation_network/relation_rank/rel_rank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/relation_rank/rel_rank.py -------------------------------------------------------------------------------- /models/relation_network/relation_rank/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/relation_rank/test.py -------------------------------------------------------------------------------- /models/relation_network/relation_rank/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/relation_network/relation_rank/train.py -------------------------------------------------------------------------------- /models/subject_network/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/README.md -------------------------------------------------------------------------------- /models/subject_network/sub_transe/gen_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/sub_transe/gen_data.py -------------------------------------------------------------------------------- /models/subject_network/sub_transe/sub_transe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/sub_transe/sub_transe.py -------------------------------------------------------------------------------- /models/subject_network/sub_transe/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/sub_transe/test.py -------------------------------------------------------------------------------- /models/subject_network/sub_transe/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/sub_transe/train.py -------------------------------------------------------------------------------- /models/subject_network/sub_typevec/gen_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/sub_typevec/gen_data.py -------------------------------------------------------------------------------- /models/subject_network/sub_typevec/sub_typevec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/sub_typevec/sub_typevec.py -------------------------------------------------------------------------------- /models/subject_network/sub_typevec/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/sub_typevec/test.py -------------------------------------------------------------------------------- /models/subject_network/sub_typevec/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexYangLi/tf_CFO/HEAD/models/subject_network/sub_typevec/train.py --------------------------------------------------------------------------------