%%html
<script>
function code_toggle() {
if (code_shown){
$('div.input').hide('500');
$('#toggleButton').val('Show Code')
} else {
$('div.input').show('500');
$('#toggleButton').val('Hide Code')
}
code_shown = !code_shown
}
$( document ).ready(function(){
code_shown=false;
$('div.input').hide()
});
</script>
<form action="javascript:code_toggle()"><input type="submit" id="toggleButton" value="Show Code"></form>
<style>
.rendered_html td {
font-size: xx-large;
text-align: left; !important
}
.rendered_html th {
font-size: xx-large;
text-align: left; !important
}
</style>
%%capture
%load_ext autoreload
%autoreload 2
import sys
sys.path.append("../statnlpbook/")
#util.execute_notebook('relation_extraction.ipynb')
%load_ext tikzmagic
Question:
Which university did Turing go to?
Answer:
Princeton
In 1938, he obtained his PhD from the Department of Mathematics at Princeton University.
Knowledge base:
Factoid questions:
Non-factoid questions:
How do I delete my Instagram account?
Why is the sky blue?
What is the middle name of the player with the second most National Football League career rushing yards?
The 1999 film '10 Things I Hate About You' is based on which Shakespeare play?
General approach:
NULL
(unanswerable)How to model span selection?
start | end | ||||||
---|---|---|---|---|---|---|---|
... | termed | the | interferon | signature | . | Here | ... |
What are the advantages and disadvantages of each?
Metrics for ranking:
Test questions have $k$ gold answers by different human annotators (e.g., $k=3$ for SQuAD and TyDI-QA, $k=5$ for NQ). Metrics for span selection:
a, an, the
Information is already organized in tables, databases and knowledge bases!
(from Cui et al., 2022)
Can be modeled as sequence-to-sequence (seq2seq), see machine translation.
(from AllenNLP)