├── CoT ├── README.md ├── cot_io.py ├── prompt_list.py └── utils.py ├── Freebase └── README.md ├── README.md ├── ToG ├── README.md ├── client.py ├── freebase_func.py ├── main_freebase.py ├── main_wiki.py ├── prompt_list.py ├── server_urls.txt ├── utils.py └── wiki_func.py ├── Wikidata ├── .gitignore ├── README.md ├── requirements.txt ├── scripts │ ├── build_index.sh │ └── start_server.sh └── simple_wikidata_db │ ├── db_deploy │ ├── __init__.py │ ├── build_index.py │ ├── client.py │ ├── server.py │ └── utils.py │ ├── preprocess_dump.py │ ├── preprocess_utils │ ├── reader_process.py │ ├── worker_process.py │ └── writer_process.py │ └── utils.py ├── assets ├── application.png ├── demo.png ├── experiments.png └── methods.png ├── data ├── README.md ├── SimpleQA.json ├── T-REX.json ├── WebQSP.json ├── WebQuestions.json ├── Zero_Shot_RE.json ├── creak.json ├── cwq.json ├── graliqa.json └── qald_10-en.json ├── eval ├── README.md ├── eval.py └── utils.py ├── requirements.txt └── tools ├── README.md ├── de_duplicate.py ├── jsonl2json.py └── split_dataset.py /CoT/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/CoT/README.md -------------------------------------------------------------------------------- /CoT/cot_io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/CoT/cot_io.py -------------------------------------------------------------------------------- /CoT/prompt_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/CoT/prompt_list.py -------------------------------------------------------------------------------- /CoT/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/CoT/utils.py -------------------------------------------------------------------------------- /Freebase/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Freebase/README.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/README.md -------------------------------------------------------------------------------- /ToG/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/ToG/README.md -------------------------------------------------------------------------------- /ToG/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/ToG/client.py -------------------------------------------------------------------------------- /ToG/freebase_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/ToG/freebase_func.py -------------------------------------------------------------------------------- /ToG/main_freebase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/ToG/main_freebase.py -------------------------------------------------------------------------------- /ToG/main_wiki.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/ToG/main_wiki.py -------------------------------------------------------------------------------- /ToG/prompt_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/ToG/prompt_list.py -------------------------------------------------------------------------------- /ToG/server_urls.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ToG/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/ToG/utils.py -------------------------------------------------------------------------------- /ToG/wiki_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/ToG/wiki_func.py -------------------------------------------------------------------------------- /Wikidata/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/.gitignore -------------------------------------------------------------------------------- /Wikidata/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/README.md -------------------------------------------------------------------------------- /Wikidata/requirements.txt: -------------------------------------------------------------------------------- 1 | ujson==5.1.0 2 | pathlib==1.0.1 3 | -------------------------------------------------------------------------------- /Wikidata/scripts/build_index.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/scripts/build_index.sh -------------------------------------------------------------------------------- /Wikidata/scripts/start_server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/scripts/start_server.sh -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/db_deploy/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/db_deploy/build_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/db_deploy/build_index.py -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/db_deploy/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/db_deploy/client.py -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/db_deploy/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/db_deploy/server.py -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/db_deploy/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/db_deploy/utils.py -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/preprocess_dump.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/preprocess_dump.py -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/preprocess_utils/reader_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/preprocess_utils/reader_process.py -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/preprocess_utils/worker_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/preprocess_utils/worker_process.py -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/preprocess_utils/writer_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/preprocess_utils/writer_process.py -------------------------------------------------------------------------------- /Wikidata/simple_wikidata_db/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/Wikidata/simple_wikidata_db/utils.py -------------------------------------------------------------------------------- /assets/application.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/assets/application.png -------------------------------------------------------------------------------- /assets/demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/assets/demo.png -------------------------------------------------------------------------------- /assets/experiments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/assets/experiments.png -------------------------------------------------------------------------------- /assets/methods.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/assets/methods.png -------------------------------------------------------------------------------- /data/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/README.md -------------------------------------------------------------------------------- /data/SimpleQA.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/SimpleQA.json -------------------------------------------------------------------------------- /data/T-REX.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/T-REX.json -------------------------------------------------------------------------------- /data/WebQSP.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/WebQSP.json -------------------------------------------------------------------------------- /data/WebQuestions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/WebQuestions.json -------------------------------------------------------------------------------- /data/Zero_Shot_RE.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/Zero_Shot_RE.json -------------------------------------------------------------------------------- /data/creak.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/creak.json -------------------------------------------------------------------------------- /data/cwq.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/cwq.json -------------------------------------------------------------------------------- /data/graliqa.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/graliqa.json -------------------------------------------------------------------------------- /data/qald_10-en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/data/qald_10-en.json -------------------------------------------------------------------------------- /eval/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/eval/README.md -------------------------------------------------------------------------------- /eval/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/eval/eval.py -------------------------------------------------------------------------------- /eval/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/eval/utils.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/requirements.txt -------------------------------------------------------------------------------- /tools/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/tools/README.md -------------------------------------------------------------------------------- /tools/de_duplicate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/tools/de_duplicate.py -------------------------------------------------------------------------------- /tools/jsonl2json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/tools/jsonl2json.py -------------------------------------------------------------------------------- /tools/split_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GasolSun36/ToG/HEAD/tools/split_dataset.py --------------------------------------------------------------------------------