├── README.md ├── call_api.py ├── configs ├── Dataset_template.yaml ├── GrailQA.yaml ├── GraphQ.yaml ├── Link.yaml ├── WebQSP.yaml └── instruction.txt ├── fig └── model.png ├── generator.py ├── linker.py ├── query_fliter.py ├── requirements.txt └── utils ├── borrow ├── expr_parser.py ├── parse_sparql.py ├── utils.py └── utils_borrow.py ├── database.py ├── dataset.py ├── entity_linker.py ├── preprocess_dataset.py ├── prompt.py ├── relation_linker.py ├── selector.py ├── similarity.py └── util.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/README.md -------------------------------------------------------------------------------- /call_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/call_api.py -------------------------------------------------------------------------------- /configs/Dataset_template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/configs/Dataset_template.yaml -------------------------------------------------------------------------------- /configs/GrailQA.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/configs/GrailQA.yaml -------------------------------------------------------------------------------- /configs/GraphQ.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/configs/GraphQ.yaml -------------------------------------------------------------------------------- /configs/Link.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/configs/Link.yaml -------------------------------------------------------------------------------- /configs/WebQSP.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/configs/WebQSP.yaml -------------------------------------------------------------------------------- /configs/instruction.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/configs/instruction.txt -------------------------------------------------------------------------------- /fig/model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/fig/model.png -------------------------------------------------------------------------------- /generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/generator.py -------------------------------------------------------------------------------- /linker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/linker.py -------------------------------------------------------------------------------- /query_fliter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/query_fliter.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/requirements.txt -------------------------------------------------------------------------------- /utils/borrow/expr_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/borrow/expr_parser.py -------------------------------------------------------------------------------- /utils/borrow/parse_sparql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/borrow/parse_sparql.py -------------------------------------------------------------------------------- /utils/borrow/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/borrow/utils.py -------------------------------------------------------------------------------- /utils/borrow/utils_borrow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/borrow/utils_borrow.py -------------------------------------------------------------------------------- /utils/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/database.py -------------------------------------------------------------------------------- /utils/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/dataset.py -------------------------------------------------------------------------------- /utils/entity_linker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/entity_linker.py -------------------------------------------------------------------------------- /utils/preprocess_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/preprocess_dataset.py -------------------------------------------------------------------------------- /utils/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/prompt.py -------------------------------------------------------------------------------- /utils/relation_linker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/relation_linker.py -------------------------------------------------------------------------------- /utils/selector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/selector.py -------------------------------------------------------------------------------- /utils/similarity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/similarity.py -------------------------------------------------------------------------------- /utils/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Arthurizijar/KB-Coder/HEAD/utils/util.py --------------------------------------------------------------------------------