Information Extraction: Relations, Events, and Time

Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 21

72 cards

Introduction

  1. What is information extraction (IE)?
    Turning unstructured information embedded in texts into structured data, e.g. to populate a relational database for further processing.
  2. What are the main IE tasks introduced in the chapter?
    Relation extraction (semantic relations between entities), event extraction, temporal expression recognition and normalization, temporal ordering of events, and template filling.
  3. What is a knowledge graph?
    A dataset of structured relational knowledge, used e.g. by search engines to present information to users; relation extraction helps populate it.
  4. What is template filling?
    Finding recurring stereotypical events or situations in documents and filling the slots of a template with text segments or inferred concepts (times, amounts, ontology entities).
    FARE-RAISE ATTEMPT
    LEAD AIRLINEUnited Airlines
    AMOUNT$6
    EFFECTIVE DATE2006-10-26
    FOLLOWERAmerican Airlines

21.1 Relation extraction

  1. What binary relations can be extracted from “American Airlines, a unit of AMR Corp., … spokesman Tim Wagner said”?
    Tim Wagner is a spokesman of (employed by) American Airlines; American Airlines is part of (a unit of) AMR Corp. These instantiate generic relations like part-of or employs.
  2. What is the ACE relation set?
    The 17 relations used in the ACE relation extraction evaluations, grouped into classes like physical (located, near), part-whole, person-social (family, business), org affiliation (employment, founder, membership…), agent-artifact, and gen-affiliation (citizen-resident-ethnicity-religion).
  3. What is UMLS?
    The Unified Medical Language System of the US National Library of Medicine: a network of broad subject categories and entity types with relations between them, e.g. Doppler echocardiography Diagnoses acquired stenosis.
  4. What is an RDF triple?
    A subject–predicate–object tuple in the Resource Description Framework, e.g. (Golden Gate Park, location, San Francisco).
  5. Which resources derived from Wikipedia provide relations?
    Infoboxes (structured facts like state = "California"), DBpedia (an ontology of RDF triples from Wikipedia), and Freebase (now part of Wikidata).
  6. What ontological relations does WordNet offer?
    The is-a (hypernym) relation between classes (giraffe is-a ruminant is-a ungulate is-a mammal…) and the instance-of relation between individuals and classes (San Francisco instance-of city).
  7. What datasets exist for training and testing relation extractors?
    TACRED (person/organization relation triples in news and web text with 41 relation types plus no_relation, mostly no_relation examples) and SemEval 2010 Task 8 (relations between nominals, e.g. product-producer, component-whole).
  8. Why does TACRED contain mostly no_relation examples?
    Sufficient negative data is important for training relation extractors.

21.2 Relation extraction algorithms

  1. What are the main classes of relation extraction algorithms?
    Hand-written patterns, supervised machine learning, semi-supervised learning (bootstrapping or distant supervision), and unsupervised (Open IE).
  2. What are Hearst patterns?
    Lexico-syntactic patterns for relation extraction (Hearst, 1992), e.g. “NP₀ such as NP₁ {, NP₂ …, (and|or) NPᵢ}” implies hyponym(NPᵢ, NP₀): from “red algae, such as Gelidium” infer Gelidium is a kind of red algae.
  3. Give Hearst patterns for hyponymy with examples.
    patternexample
    NP {, NP}* (and|or) other NP_Htemples, treasuries, and other civic buildings
    NP_H such as NP …red algae such as Gelidium
    such NP_H as NP …such authors as Herrick and Shakespeare
    NP_H, including NP …common-law countries, including Canada
    NP_H, especially NP …European countries, especially France
  4. How can pattern-based extraction use named entity constraints?
    Patterns over NE types, e.g. PER, POSITION of ORG (“George Marshall, Secretary of State of the United States”) or PER (named|appointed) PER Prep? POSITION, to find who holds which office in which organization.
  5. What are the pros and cons of hand-built patterns?
    High precision and tailorable to domains, but low recall and laborious to write for all cases.
  6. Describe the basic supervised relation extraction pipeline.
    Annotate a corpus with a fixed set of entities and relations; then (1) find pairs of named entities (usually within a sentence) and (2) classify the relation for each pair with any supervised classifier. An optional filter first decides whether a pair is related at all.
  7. What features does a feature-based relation classifier use?
    Headwords of the two mentions and their concatenation, bags of words and bigrams in and between the mentions, NE types and their concatenation (ORG-PER), entity level (name, nominal, pronoun), the number of entities between them, and syntactic paths between the mentions.
  8. How does a typical neural relation extractor for TACRED work?
    Feed the sentence to a pretrained encoder (e.g. BERT or SpanBERT) with the subject and object replaced by their NER tags (“[SUBJ-PERSON] was born in [OBJ-LOC]”), and put a linear classifier over the relation labels on the [CLS] output.
  9. Why are the subject and object replaced by NER tags in neural relation extraction?
    Partial de-lexification keeps the system from overfitting to the particular entity words.
  10. What are the drawbacks of supervised relation extraction?
    Labeling large training sets is very expensive, and models are brittle: they don’t generalize well to new genres.
  11. How does bootstrapping relation extraction work?
    Start from a few seed tuples (e.g. Ryanair has a hub at Charleroi) or seed patterns; find sentences containing the seed entities, generalize their contexts into new patterns (“[ORG], which uses [LOC] as a hub”), use the patterns to find new tuples, keep high-confidence ones, and iterate.
  12. What is semantic drift in bootstrapping?
    An erroneous pattern introduces wrong tuples, which create more bad patterns, so the meaning of the extracted relation drifts (e.g. “Sydney has a ferry hub at Circular Quay” yielding ⟨Sydney, Circular Quay⟩).
  13. How is the confidence of a bootstrapping pattern computed?
    By balancing its performance on the current tuple set (hits(p): known tuples it matches) against its productivity (finds(p): all tuples it finds), e.g. \(\text{Conf}(p) = \frac{|hits(p)|}{|finds(p)|}\log|finds(p)|\).
  14. How is confidence in a new tuple combined over the patterns supporting it?
    With noisy-or: assuming a tuple is false only if all its supporting patterns failed, independently, \(\text{Conf}(t) = 1 - \prod_{p}(1 - \text{Conf}(p))\).
  15. What is distant supervision for relation extraction?
    Use a large database (DBpedia, Freebase) of relation tuples as supervision: find sentences in a big corpus containing both entities of a known tuple, extract (noisy) features from all of them, and train a supervised classifier; no-relation examples come from random unrelated entity pairs.
  16. Why can distant supervision use very rich features?
    Its training sets are huge, so it can use conjunctions of features, e.g. M1 = ORG & M2 = PER & nextword = “said” & a specific syntactic path.
  17. What are the advantages and the main problem of distant supervision?
    Like supervised learning it uses many features and detailed human knowledge; like patterns it uses high-precision evidence; like unsupervised methods it needs no labeled text corpus and avoids genre issues, and without iterative expansion there is no semantic drift. But precision tends to be low, and it only works for relations already in a large database.
  18. What did Snow et al. (2005) find when using WordNet hypernym pairs as distant supervision?
    Their system rediscovered Hearst’s original patterns plus tens of thousands of new ones, like “NP_H like NP” and “NP_H called NP”.
  19. What is open information extraction (Open IE)?
    Unsupervised relation extraction from the web with no labeled data and no predefined relations: relations are simply strings of words, usually starting with a verb.
  20. How does the ReVerb Open IE system extract relations?
    POS-tag and chunk the sentence; for each verb, find the longest verb-initial word sequence meeting syntactic and lexical constraints; take the nearest noun phrases to its left and right as arguments; score the triple with a confidence classifier trained on hand-labeled extractions.
  21. What do ReVerb’s syntactic and lexical constraints enforce?
    Syntactic: a verb-initial sequence, possibly with nouns, adjectives, prepositions or particles (light verbs like have express the relation with a noun: has a hub in). Lexical: the relation must occur with many distinct arguments in a large corpus, pruning rare long strings.
  22. What does ReVerb extract from “United has a hub in Chicago, which is the headquarters of United Continental Holdings”?
    ⟨United, has a hub in, Chicago⟩ and ⟨Chicago, is the headquarters of, United Continental Holdings⟩.
  23. What are the advantage and disadvantages of Open IE?
    It handles huge numbers of relations without specifying them in advance; but the strings must be mapped to canonical forms for databases, and verb-centered methods miss relations expressed nominally.
  24. How are supervised and unsupervised relation extractors evaluated?
    Supervised: precision, recall, F1 against gold test relations (labeled or unlabeled). Semi- and unsupervised: no gold set, so estimate precision by having humans check a random sample of extracted tuples, possibly at different levels of recall (top 1,000, 10,000…); recall can’t be measured directly.

21.3 Extracting events

  1. What is an event mention for event extraction?
    Any expression denoting an event or state that can be assigned to a point or interval in time.
  2. Do events always correspond to verbs in English?
    No: most verbs introduce events, but noun phrases can too (the move, the increase), and some verbs don’t, like phrasal took effect or light verbs.
  3. What is a light verb?
    A verb with little meaning of its own, whose event is expressed by its direct object noun: in took a flight, flight defines the event; take, make, have just provide syntax.
  4. What attributes are extracted for events in TempEval-style tasks?
    Event class (action, state, reporting, perception…), plus aspect, tense and modality, e.g. said = (class=REPORTING, tense=PAST, aspect=PERFECTIVE).
  5. How is event extraction modeled?
    As supervised learning: IOB sequence labeling to detect events, then multi-class classifiers for class and attributes, using encoders or features like affixes, nominalization suffixes (-tion), POS, light-verb government, and stems.

21.4 Representing time

  1. What is Allen’s interval algebra?
    A widely used model in which all events and times are intervals (no points), related by 13 primitive relations such as before/after, meets, overlaps, starts, during, finishes and equals (with inverses).
    beforemeetsoverlapsduringequalsA, B
    Blue = A, outlined = B. With starts, finishes and inverses: 13 relations.
  2. Why is the relation between verb tense and time not straightforward?
    The present can refer to the future (“we fly from San Francisco to Boston at 10”), and past tenses differ in ways not captured by “before now” (“Flight 1902 arrived late” vs “had arrived late”).
  3. What is Reichenbach’s reference point?
    A time R separate from the event time E and utterance time U, used to explain tenses: in “When Mary’s flight departed, I had eaten lunch”, the departure is the reference point and the eating precedes it (E < R < U); with “I ate lunch”, eating starts at R.
    tenseorder
    simple past (I ate)E = R < U
    past perfect (I had eaten)E < R < U
    present perfect (I have eaten)E < R = U
    simple future (I will eat)U < R = E
  4. How are temporal expressions in English often organized metaphorically?
    In spatial terms: at, in, somewhere, near (“somewhere around noon”, “at 6:45 in the morning”), one domain systematically expressed through another.

21.5 Representing aspect

  1. What is aspect (Aktionsart)?
    The categorization of events by their internal temporal structure: whether ongoing or ended, happening at a point or over an interval.
  2. What is the most basic aspectual distinction?
    Events, which involve change, versus states, which don’t: a participant being in a state or having a property, seen as unchanging (“I need the cheapest fare”).
  3. What are Vendler’s four aspectual classes?
    classexampleproperties
    stativeI know my departure gate.no change
    activityJohn is flying.over time, no endpoint
    accomplishmentSally booked her flight.over time, natural endpoint (telic)
    achievementShe found her gate.punctual, results in a state
  4. What does telic mean?
    From Greek telos “end, goal”: events conceptualized as having a natural endpoint or goal, as accomplishments and achievements are.
  5. How do accomplishments differ from achievements?
    Both result in a state, but accomplishments unfold over time toward the end (“booked me a reservation”), while achievements are punctual, with no conceptualized lead-up process (“she found her gate”, “we reached New York”).
  6. Is an event’s aspectual class determined by its verb?
    No: “I flew” is an activity, while “I flew to New York” is an accomplishment; the class depends on the whole expression in context.

21.6 TimeBank

  1. What is TimeBank, and what annotation language does it use?
    A corpus of American English annotated with temporal information using TimeML, based on Allen’s interval algebra: EVENT (events and states), TIMEX3 (time expressions) and LINK objects.
  2. What kinds of links does TimeML use?
    TLINKs for the 13 Allen temporal relations (event–event, event–time, time–time), ALINKs for aspectual relations between events and subevents, and SLINKs for subordination relations like modal or factive contexts.

21.7 Automatic temporal analysis

  1. What are the three common steps in analyzing time in text?
    (1) Extract temporal expressions; (2) normalize them to a standard format; (3) link events to times and build time graphs or timelines.
  2. What are absolute, relative and duration temporal expressions?
    Absolute ones map directly to calendar dates or times (April 24, 1916, 10:15 AM); relative ones map via a reference point (yesterday, next semester, two weeks from yesterday); durations are spans (four hours, three weeks).
  3. What are temporal lexical triggers?
    Words heading temporal expressions: nouns (morning, winter), proper nouns (January, Monday, Ramadan), adjectives (recent, annual), adverbs (hourly, daily).
  4. How are temporal expressions detected?
    Rule-based cascades of regular expressions over POS, trigger words and classes (e.g. SUTime), or IOB sequence labelers using embeddings, fine-tuned encoders or classic features.
  5. What causes false positives in temporal expression recognition?
    Lexical triggers used non-temporally: “1984 tells the story of Winston Smith”, “U2’s Sunday Bloody Sunday”.
  6. What is temporal normalization?
    Mapping a temporal expression to a point in time (calendar date, time of day) or a duration, represented in the ISO 8601 standard.
  7. Normalize “last week” and “the weekend” in an article dated July 2, 2007 (ISO week 27).
    last week → 2007-W26 (a date of type week); the weekend → duration P1WE, anchored to that week; two weeks → P2W. The dateline 2007-07-02 is the document’s creation time.
  8. What do ISO 8601 patterns like YYYY-Wnn and P3Y mean?
    YYYY-Wnn is week nn of the year (weeks start Monday; week 1 contains the year’s first Thursday). Pnx is a duration of n units x: P3Y three years, P2D two days, P1WE one weekend.
  9. How do rule-based normalizers work?
    Patterns matching temporal expressions are paired with semantic procedures, e.g. the pattern for “3 years old” maps to Duration(3, year).
  10. What is a document’s temporal anchor, and how is it used?
    Its dateline: relative expressions like today, yesterday, tomorrow are computed from it with (modular) temporal arithmetic.
  11. Why is normalizing “the weekend” or “next Friday” hard?
    Their reference depends on context: the weekend may be the past or coming one depending on the governing verb’s tense; next Friday may mean the nearest Friday or the one after, depending on how close the document date is to a Friday.
  12. What is the temporal ordering task, and why does it need event detection?
    Imposing a (partial) order on the events and times in a text, as binary relation classification. Many times are anchored to events (“one week after the storm”), so events must be detected first.
  13. How are temporal links between events and times predicted?
    By classifiers trained on TimeBank gold TLINKs between pairs of events/times (and the document time), using words/embeddings, parse paths, tense and aspect; sieve architectures are also used.

21.8 Template filling

  1. What are scripts?
    Abstract stereotypical situations or stories (Schank & Abelson, 1977): prototypical sequences of sub-events with participants and roles, whose expectations support classification, role assignment and inference of unstated facts.
  2. How is template filling modeled with machine learning?
    Two supervised systems: template recognition (sometimes called event recognition), a text classifier deciding whether a sentence invokes the template; and role-filler extraction, a separate classifier (or sequence model) per slot, e.g. LEAD-AIRLINE, AMOUNT.
  3. How can non-identical fillers for the same slot (United vs United Airlines) be reconciled?
    With coreference resolution.
  4. What was the MUC-5 joint venture task, and how did FASTUS solve it?
    Producing hierarchically linked templates describing joint ventures (a TIE-UP template whose ACTIVITY slot is itself a template). FASTUS used a cascade of finite-state transducers with hand-written rules: tokenization, multiword and name recognition, noun/verb group chunking, complex groups, entity and event patterns filling templates, then merging references.

Historical notes

  1. What drove progress in information extraction historically?
    Early template filling (DeJong’s Frump), the US-government MUC conferences, then machine learning and sequence labeling (HMMs, MEMMs, CRFs, neural), and shared evaluations: ACE, TAC KBP (slot filling), SemEval.
  2. Who introduced distant supervision and Open IE systems?
    Mintz et al. (2009) coined distant supervision (similar ideas existed as “weakly labeled data”); Open IE systems include KnowItAll, TextRunner and ReVerb.

Source