Skip to content

xixi019/primeKGQG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrimeKGQA

This is a repo for generation questions from PrimeKG

The dataset is uploaded in the zenedo: https://zenodo.org/records/13348627

Project Name

License
Build Status

Description

This code base extracts subgraphs from an endpoint, form sparqls, extract answers. The above info would be sent to LLM for question generation.


Prerequisites

  • Python Version:3.8 and above
  • pip install -r requirement.tex

How to run

  • go to folder 'extract'

  • run endExtract.py and statistics.py

  • they would extract subgraphs based on the network motifs and output json files with related info

  • go to folder generation

  • rub mistral_baseline.py

  • generate question from LLM

dataset for download

Please cite our publication if you find this work useful

@incollection{yan2024bridging,
title={Bridging the Gap: Generating a Comprehensive Biomedical Knowledge Graph Question Answering Dataset},
author={Yan, Xi and Westphal, Patrick and Seliger, Jan and Usbeck, Ricardo},
booktitle={ECAI 2024},
pages={1198--1205},
year={2024},
publisher={IOS Press}
}
```****

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published