Skip to content

How the Text2Sparql Model in Tutorial10_Knowledge_Graph was trained #1146

Answered by julian-risch
eboraks asked this question in Questions
Discussion options

You must be logged in to vote

Let me briefly summarize the main steps that we took to train a Text2SPARQL model on the Harry Potter Fandom data.

  1. We started with the LC-QuAD dataset, which includes text questions and corresponding SPARQL queries, for example:

"sparql_wikidata": " select distinct ?obj where { wd:Q127998 wdt:P27 ?obj . ?obj wdt:P31 wd:Q6256 } ",
"paraphrased_question": "Which country is Mahmoud Abbas from?"

  1. To better make use of the LC-QuAD dataset, we replaced all numeric identifiers, e.g., wd:Q127998, wdt:P27, wdt:P31, wd:Q6256, with something the model could come up with based on the question text without any other context. To this end, we looked up the name that refers to each identifier and cre…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@eboraks
Comment options

Comment options

You must be logged in to vote
8 replies
@julian-risch
Comment options

@julian-risch
Comment options

@afermi
Comment options

@IliaGamov
Comment options

@julian-risch
Comment options

Answer selected by lalitpagaria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants