Building a Chatbot for Students
Mentorship based on Extracted
Knowledge Graphs
David Samy Naeem
Dr. Mervat Mustafa Fahmy Abuelkheir
Eng. Mayar Osama Abdelstar
1
German University in Cairo
Outline
2
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
ENG 800: <<Your Title here>>
German University in Cairo
Thesis Motivation
Thesis Objective
3
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
ENG 800: <<Your Title here>>
German University in Cairo
Background
4
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
Knowledge Graph Embeddings
02
Knowledge Graphs
01
ENG 800: <<Your Title here>>
German University in Cairo
Related Work
5
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
1
Intent Classifier
2
Question to SPARQL
3
Information Retrieval
Entity Mapping
Coreference Resolution
Triple Extraction
ENG 800: <<Your Title here>>
German University in Cairo
Solution Approach
6
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
Dataset Pre-Processing
Coreference Resolution
Linking pronouns that refer to same entity in text.
Relationship Extraction
(Subject-Relation-Object)
Saving KG
Triplets saved in CSV format.
ENG 800: <<Your Title here>>
German University in Cairo
Solution Approach
7
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
KG Pre-Processing
Removing entities and relations that are not well-defined or contain errors.
KG Encoding
KG Splitting
Model Training
ENG 800: <<Your Title here>>
German University in Cairo
Solution Approach
8
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
ENG 800: <<Your Title here>>
German University in Cairo
Solution Approach
9
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
Spell & Grammar Checking
Correcting spelling and grammar errors on:
Stop Word Removal
Lowercasing
Reduce the complexity of the input.
Lemmatization
ENG 800: <<Your Title here>>
German University in Cairo
Solution Approach
10
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
Entity & Predicate Extraction
Entity Mapping
Associating extracted entities from user input with corresponding entities in the KG.
ENG 800: <<Your Title here>>
German University in Cairo
Solution Approach
11
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
Entity & Relation Encoding
Mapping entities and relations into their corresponding embedding representations.
Entity Prediction
Providing a known entity and relation to predict the missing head or tail.
ENG 800: <<Your Title here>>
German University in Cairo
Solution Approach
12
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
Entity & Relation Decoding
Mapping the embedded representations of predicted entities and relations back to English words.
Tokenization & POS Tagging
Conjugating relation verb according to the subject entity & adding back missed prepositions due to stop word removal.
ENG 800: <<Your Title here>>
German University in Cairo
Solution Approach
13
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
Overview
ENG 800: <<Your Title here>>
German University in Cairo
Technologies & Frameworks
14
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
ENG 800: <<Your Title here>>
German University in Cairo
Results
15
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
ENG 800: <<Your Title here>>
German University in Cairo
Analysis
16
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
ComplEx Model
03
TransE Model
01
DistMult Model
02
ENG 800: <<Your Title here>>
German University in Cairo
Demo
17
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
ENG 800: <<Your Title here>>
German University in Cairo
Conclusion & Future Work
18
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
User Feedback
03
Multi-hop Reasoning
01
Integrating with University System
02
ENG 800: <<Your Title here>>
German University in Cairo
Thank You
19
Building a Chatbot for Students Mentorship based on Extracted Knowledge Graphs
Questions?
ENG 800: <<Your Title here>>
German University in Cairo