mining knowledge graphs from text
play

Mining Knowledge Graphs from Text WSDM 2018 J AY P UJARA , S AMEER - PowerPoint PPT Presentation

Mining Knowledge Graphs from Text WSDM 2018 J AY P UJARA , S AMEER S INGH Tutorial Overview Part 1: Knowledge Graphs Part 2: Part 3: Knowledge Graph Extraction Construction Part 4: Critical Analysis 2 Tutorial Outline 1. Knowledge


  1. Mining Knowledge Graphs from Text WSDM 2018 J AY P UJARA , S AMEER S INGH

  2. Tutorial Overview Part 1: Knowledge Graphs Part 2: Part 3: Knowledge Graph Extraction Construction Part 4: Critical Analysis 2

  3. Tutorial Outline 1. Knowledge Graph Primer [Jay] 2. Knowledge Extraction Primer [Jay] 3. Knowledge Graph Construction a. Probabilistic Models [Jay] Coffee Break b. Embedding Techniques [Sameer] 4. Critical Overview and Conclusion [Sameer] 3

  4. What is NLP? Information “Knowledge” Extraction Structured Unstructured Precise, Actionable Ambiguous Specific to the task Lots and lots of it! Humans can read them, but Can be used for downstream … very slowly applications, such as creating … can’t remember all Knowledge Graphs! … can’t answer questions 4

  5. Knowledge Extraction John was born in Liverpool, to Julia and Alfred Lennon. Text NLP Lennon.. Mrs. Lennon.. his father the Pool John Lennon... .. his mother .. Alfred he Location Person Person Person John was born in Liverpool, to Julia and Alfred Lennon. Annotated text NNP VBD VBD IN NNP TO NNP CC NNP NNP Extraction graph Information Alfred Extraction Lennon childOf birthplace John Liverpool Lennon Julia childOf Lennon 5

  6. Breaking it Down Alfred Information Lennon Extraction Entity resolution, childOf spouse Entity linking, birthplace John Liverpool Lennon Relation extraction… Julia childOf Lennon Document Lennon.. Mrs. Lennon.. his father the Pool Coreference Resolution... John Lennon... .. his mother .. Alfred he Location Person Person Person John was born in Liverpool, to Julia and Alfred Lennon. Sentence Dependency Parsing, Part of speech tagging, Named entity recognition… NNP VBD VBD IN NNP TO NNP CC NNP NNP John was born in Liverpool, to Julia and Alfred Lennon. 6

  7. Tagging the Parts of Speech NNP VBD VBD IN NNP TO NNP CC NNP NNP John was born in Liverpool, to Julia and Alfred Lennon. Nouns are entities Verbs are relations • Common approaches include CRFs, CNNs, LSTMs 7

  8. Detecting Named Entities Location Person Person Person John was born in Liverpool, to Julia and Alfred Lennon. • Structured prediction approaches • Capture entity mentions and entity types 8

  9. NLP annotations à features for IE Combine tokens, dependency paths, and entity types to define rules. appos nmod case det , DT CEO of Argument 1 Argument 2 Person Organization Bill Gates, the CEO of Microsoft, said … Mr. Jobs, the brilliant and charming CEO of Apple Inc., said … … announced by Steve Jobs, the CEO of Apple. … announced by Bill Gates, the director and CEO of Microsoft. … mused Bill, a former CEO of Microsoft. and many other possible instantiations… 9

  10. Within-document Coreference Mrs. Lennon.. Alfred He… .. his mother .. his father Lennon.. the Pool he John Lennon... John was born in Liverpool, to Julia and Alfred Lennon. • Pairwise model for each noun/pronoun • Can consolidate information, provide context 10

  11. Entity Resolution & Linking ...during the late 60's and early 70's, Kevin Smith worked with several local... ...the term hip-hop is attributed to Lovebug Starski . What does it actually mean... Like Back in 2008, the Lions drafted Kevin Smith , even though Smith was badly... ... backfield in the wake of Kevin Smith 's knee injury, and the addition of Haynesworth... The filmmaker Kevin Smith returns to the role of Silent Bob... Nothing could be more irrelevant to Kevin Smith 's audacious ''Dogma'' than ticking off... ... The Physiological Basis of Politics,” by Kevin Smith , Douglas Oxley, Matthew Hibbing... 11

  12. Entity Names: Two Main Problems Entities with Same Name Different Names for Entities Same type of entities share names Nick Names Kevin Smith, John Smith, Bam Bam, Drumpf, … Springfield, … Things named after each other Typos/Misspellings Clinton, Washington, Paris, Baarak, Barak, Barrack, … Amazon, Princeton, Kingston, … Partial Reference Inconsistent References First names of people, Location MSFT, APPL, GOOG… instead of team name, Nick names 12

  13. Entity Linking Approach Washington drops 10 points after game with UCLA Bruins. Washington DC, George Washington, Washington state, Candidate Generation Lake Washington, Washington Huskies, Denzel Washington, University of Washington, Washington High School, … Washington DC, George Washington, Washington state, Lake Washington, Washington Huskies, Denzel Washington, Entity Types LOC/ORG University of Washington, Washington High School, … Washington DC, George Washington, Washington state, UWashington, Lake Washington, Washington Huskies, Denzel Washington, Coreference Huskies University of Washington, Washington High School, … Washington DC, George Washington, Washington state, UCLA Bruins, Lake Washington, Washington Huskies, Denzel Washington, Coherence USC Trojans University of Washington, Washington High School, … Vinculum, Ling, Singh, Weld, TACL (2015) 13

  14. Information Extraction Lennon.. Mrs. Lennon.. his father the Pool John Lennon... .. his mother .. Alfred he Location Person Person Person John was born in Liverpool, to Julia and Alfred Lennon. NNP VBD VBD IN NNP TO NNP CC NNP NNP Information Extraction Alfred Lennon childOf spouse birthplace John Liverpool Lennon Julia childOf Lennon 14

  15. Information Extraction 3 LEVELS OF SUPERVISION 3 CONCRETE SUB-PROBLEMS Supervised Defining domain Learning extractors Semi-supervised Scoring the facts Unsupervised 15

  16. Effect of supervision on extractions Precision, Recall, Human efforts Speed 16

  17. Information Extraction 3 LEVELS OF SUPERVISION 3 CONCRETE SUB-PROBLEMS Supervised Defining domain Semi-supervised Learning extractors Scoring the facts Unsupervised 17

  18. Defining Domain: Manual Everything consumes Food Animals Subset Disjoint Mammals Reptiles Fruits Vegetables [Toward an Architecture for Never-Ending Language Learning , Carlson et al. AAAI 2010] 18

  19. Defining Domain: Semi-automatic • Subset of types are • SSL methods discover manually defined new types from unlabeled data Everything Everything Food Animals Food Animals Location Mammals Reptiles Vegetables Fruits Mammals Reptiles Fruits Vegetables Beverages Country City [ Exploratory Learning , Dalvi et al., ECML 2013 ] 19 [ Hierarchical Semi-supervised Classification with Incomplete Class Hierarchies, Dalvi et al., WSDM 2016 ]

  20. Defining Domain: Automatic • Any noun phrase is a candidate entity ◦ Dog, cat, cow, reptile, mammal, apple, greens, mixed greens, lettuce, red leaf lettuce, romaine lettuce, iceberg lettuce… • Any verb phrase is a candidate relation ◦ Eats, feasts on, grazes, consumes, [ Open Information Extraction from the Web , Banko et al., IJCAI 2007 ] 20

  21. Information Extraction 3 LEVELS OF SUPERVISION 3 CONCRETE SUB-PROBLEMS Supervised Defining domain Learning extractors Semi-supervised Scoring candidate facts Unsupervised 21

  22. Learning Extractors • Supervised: high precision patterns •<PERSON> plays in <BAND> • Semi-supervised: Bootstrapping to learn patterns •Create examples (John Lennon, Beatles), find patterns •Manually correct incorrect patterns • Unsupervised: cluster phrases with constraints • Identify candidate verb phrases, find candidate arguments, cluster by NER types

  23. Information Extraction 3 LEVELS OF SUPERVISION 3 CONCRETE SUB-PROBLEMS Supervised Defining domain Learning extractors Semi-supervised Scoring candidate facts Unsupervised 23

  24. Scoring the candidate facts • Human defined scoring function or Scoring function learnt using supervised ML with large amount of training data {expensive, high precision} • Small amount of training data is available scoring refined over multiple iterations using both labeled and unlabeled data • Completely automatic (Self-training) Confidence(extraction pattern) ∝ (#unique instances it could extract) Score(candidate fact) ∝ (#distinct extraction patterns that support it) {cheap, leads to semantic drift}

  25. Impact of early supervision Defining domain Enables inheritance and mutual exclusion at extractor level Puts constraints on the Domain Extractors for each relation of interest space of possibly true extractions expertise Early removal of noisy needed extraction pattern can avoid semantic drift in later stages Scoring the candidate facts 25

  26. Effect of supervision on extractions Precision, Recall, Human efforts Speed 26

  27. IE systems in practice Defining Learning Scoring Fusing domain extractors candidate extractors facts ConceptNet NELL Heuristic rules Knowledge Classifier Vault OpenIE 27

  28. Knowledge Extraction: Key Points • Built on the foundation of NLP techniques • Part-of-speech tagging, dependency parsing, named entity recognition, coreference resolution… • Challenging problems with very useful outputs • Information extraction techniques use NLP to: • define the domain • extract entities and relations • score candidate outputs • Trade-off between manual & automatic methods 28

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend