From 0ffdf58140f26e497cecdd407964278a98623ede Mon Sep 17 00:00:00 2001 From: shoneyj Date: Tue, 30 May 2023 00:17:00 +0200 Subject: [PATCH] doc : chapter 1 --- README.md | 20 ++++++++++++++- doc/References.bib | 47 ++++++++++++++++++++++++++++-------- doc/chapters/chapter1.tex | 27 +++++++++++++++++---- doc/images/Thesis_kg.svg | 1 + doc/index.ist | 31 ++++++++++++++++++++++++ doc/index.tex | 25 +++++++++---------- doc/preliminary/acronyms.tex | 20 ++++++++++++--- 7 files changed, 139 insertions(+), 32 deletions(-) create mode 100644 doc/images/Thesis_kg.svg create mode 100644 doc/index.ist diff --git a/README.md b/README.md index 0f0a761..03c52be 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,22 @@ These are practice codes from plural site by Janani Ravi # LaTex -https://www.youtube.com/watch?v=ydOTMQC7np0 \ No newline at end of file +https://www.youtube.com/watch?v=ydOTMQC7np0 + + + +Eingabe Ausgabe +\ac{ecu} European currency unit (ECU) +\acf{ecu} European currency unit (ECU) +\acs{ecu} ECU +\acl{ecu} European currency unit +\acp{ecu} ECUs +\acfp{ecu} European currency units (ECUs) +\acsp{ecu} ECUs +\aclp{ecu} European currency units +\acfi{ecu} European currency unit (ECU) +\iac{ecu} a ECU +\Iac{ecu} A ECU +\acused{ecu} +\acsu{ecu} ECU +\aclu{ecu} European currency unit \ No newline at end of file diff --git a/doc/References.bib b/doc/References.bib index 12a355c..0979eb3 100644 --- a/doc/References.bib +++ b/doc/References.bib @@ -59,16 +59,6 @@ file = {Davies, Studer et al (Ed) 2008, cop 2006 - Semantic web technologies:Attachments/Davies, Studer et al (Ed) 2008, cop 2006 - Semantic web technologies.pdf:application/pdf} } -% This file was created with Citavi 6.15.2.0 - -@article{., - title = {Towards a Definition of Knowledge Graphs}, - url = {https://ceur-ws.org/Vol-1695/paper4.pdf?ref=https://githubhelp.com}, - urldate = {29/05/2023}, - file = {paper4:Attachments/paper4.pdf:application/pdf} -} - - @thesis{LisaEhrlinger, abstract = {Recently, the term knowledge graph has been used frequently in research and business, usually in close association with Semantic Web technologies, linked data, large-scale data analytics and cloud computing. Its popularity is clearly influenced by the introduction of Google’s Knowledge Graph in 2012, and since then the term has been widely used without a definition. A large variety of interpretations has hampered the evolution of a common understanding of knowledge graphs. Numerous research papers refer to Google’s Knowledge Graph, although no official documentation about the used methods exists. The prerequisite for widespread academic and commercial adoption of a concept or technology is a common understanding, based ideally on a definition that is free from ambiguity. We tackle this issue by discussing and defining the term knowledge graph, considering its history and diversity in interpretations and use. Our goal is to propose a definition of knowledge graphs that serves as basis for discussions on this topic and contributes to a common vision.}, author = {Lisa Ehrlinger, Wolfram Wöß}, @@ -76,3 +66,40 @@ keywords = {Knowledge Graphs}, } +@article{PranavRajpurkar., + abstract = {EMNLP2016 2016}, + author = {{Pranav Rajpurkar} and {Jian Zhang} and {Konstantin Lopyrev} and {Percy Liang}}, + title = {SQuAD: 100,000+ Questions for Machine Comprehension of Text}, + url = {https://aclanthology.org/D16-1264.pdf}, + urldate = {29/05/2023}, + file = {100,000 Questions for Machine Comprehension of Text:Attachments/100,000 Questions for Machine Comprehension of Text.pdf:application/pdf} +} + +% This file was created with Citavi 6.15.2.0 + +@misc{DuXinya.29042017, + abstract = {We study automatic question generation for sentences from text passages in reading comprehension. We introduce an attention-based sequence learning model for the task and investigate the effect of encoding sentence- vs. paragraph-level information. In contrast to all previous work, our model does not rely on hand-crafted rules or a sophisticated NLP pipeline; it is instead trainable end-to-end via sequence-to-sequence learning. Automatic evaluation results show that our system significantly outperforms the state-of-the-art rule-based system. In human evaluations, questions generated by our system are also rated as being more natural (i.e., grammaticality, fluency) and as more difficult to answer (in terms of syntactic and lexical divergence from the original text and reasoning needed to answer).}, + author = {{Du Xinya} and Shao, Junru and Cardie, Claire}, + date = {29/04/2017}, + title = {Learning to Ask: Neural Question Generation for Reading Comprehension}, + url = {https://arxiv.org/pdf/1705.00106.pdf}, + urldate = {28/05/2023}, + file = {1705.00106:Attachments/1705.00106.pdf:application/pdf} +} + + +% This file was created with Citavi 6.15.2.0 + +@article{LupeHernandez, + title = {Question Generator +Natural Language Processing}, +author = {Lupe Hernandez and Sam Randall, Ahmad Nazeri}, + + url = {http://cs230.stanford.edu/projects_fall_2020/reports/55771015.pdf}, + urldate = {29/05/2023}, + file = {55771015:Attachments/55771015.pdf:application/pdf} +} + + + + diff --git a/doc/chapters/chapter1.tex b/doc/chapters/chapter1.tex index 5c1bd0d..8c6807f 100644 --- a/doc/chapters/chapter1.tex +++ b/doc/chapters/chapter1.tex @@ -1,17 +1,34 @@ -\chapter{Building \acrfull{kg}} +\chapter{Building a Knowledge graph} Graph-based knowledge representation has been researched for decades. -A knowledge graph acquires and integrates information into an ontology and applies a reasoner to derive new knowledge \parencite{LisaEhrlinger}. +A \acf{kg} acquires and integrates information into an ontology and applies a reasoner to derive new knowledge \parencite{LisaEhrlinger}. The knowledge base is a dataset with formal semantics that can contain different kinds of knowledge, for example, rules, facts, axioms, definitions, statements, and primitives \parencite{Davies.2008cop.2006}. -% One of the first things required for \acrfull*{nlp} tasks is a creating a text corpus. -% In linguistics and \acrshort{nlp}, corpus refers to a collection of texts. +\begin{figure}[h!] + \centering + \includesvg[scale=0.5]{Thesis_kg.svg} + \caption{\acl{kg} architecture} + \label{fig:kg} +\end{figure} + +Figure \ref{fig:kg} illustrates the procsssing of plain text from various sources such as Wikipedia API, PDF into a graph. This abstract architecture of a \acl{kg} portraits the asumption that a \acl{kg} is more than a \acf{kb}. \acl{kg} is a combination of \acl{kb} and \acf{qe}. + +\Iac{qe} is a set of graph of possible questions that could be formed in reference to \iac{kb}. \acf{qg} for comprehensive reading is a challenging task. There are datasets available for \acf{qg}, one of it is Stanford Question Answering Dataset v1.0 (SQuAD) consisting of questions posed by crowdworkers on a set of Wikipedia articles \parencite{PranavRajpurkar.}. The limitation with such a data set is that these do not contain unanserable questions. Building a machine learning model when no answer is supported was out of scope of SQuAD objective \parencite{LupeHernandez}. Study on automatic question generation from an attention-based sequence learning model for \ac{qg} and investigate the effect of encoding sentence- vs. paragraph-level information \parencite{DuXinya.29042017}, reduces reability on hand crafted rule based systems. + +\section{Fetching text corpus} + + +One of the first things required for \acf*{nlp} tasks is a creating a text corpus. +In linguistics and \acs{nlp}, corpus refers to a collection of texts. + + + \begin{figure}[h!] \centering \includesvg{pronoun.svg} \caption{kuch kar bhai} - \label{fig:440} + \label{fig:propn} \end{figure} diff --git a/doc/images/Thesis_kg.svg b/doc/images/Thesis_kg.svg new file mode 100644 index 0000000..48c4066 --- /dev/null +++ b/doc/images/Thesis_kg.svg @@ -0,0 +1 @@ +Wiki APIPDF...NERPOS taggingDependencyParserText sourcesNLP LibraryQuestioningEngineKnowledge baseKnowledge Graph \ No newline at end of file diff --git a/doc/index.ist b/doc/index.ist new file mode 100644 index 0000000..c7514ee --- /dev/null +++ b/doc/index.ist @@ -0,0 +1,31 @@ +% makeindex style file created by the glossaries package +% for document 'index' on 2023-5-29 +actual '?' +encap '|' +level '!' +quote '"' +keyword "\\glossaryentry" +preamble "\\glossarysection[\\glossarytoctitle]{\\glossarytitle}\\glossarypreamble\n\\begin{theglossary}\\glossaryheader\n" +postamble "\%\n\\end{theglossary}\\glossarypostamble\n" +group_skip "\\glsgroupskip\n" +item_0 "\%\n" +item_1 "\%\n" +item_2 "\%\n" +item_01 "\%\n" +item_x1 "\\relax \\glsresetentrylist\n" +item_12 "\%\n" +item_x2 "\\relax \\glsresetentrylist\n" +delim_0 "\{\\glossaryentrynumbers\{\\relax " +delim_1 "\{\\glossaryentrynumbers\{\\relax " +delim_2 "\{\\glossaryentrynumbers\{\\relax " +delim_t "\}\}" +delim_n "\\delimN " +delim_r "\\delimR " +headings_flag 1 +heading_prefix "\\glsgroupheading\{" +heading_suffix "\}\\relax \\glsresetentrylist " +symhead_positive "glssymbols" +numhead_positive "glsnumbers" +page_compositor "." +suffix_2p "" +suffix_3p "" diff --git a/doc/index.tex b/doc/index.tex index 6dfb504..2c821e5 100644 --- a/doc/index.tex +++ b/doc/index.tex @@ -1,23 +1,23 @@ \documentclass[12pt,twoside]{report} + \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{fancyhdr} -\usepackage[acronym]{glossaries} -\graphicspath{ {images/} } +\usepackage[nohyperlinks, printonlyused, withpage, smaller]{acronym} \usepackage[sorting=ynt,backend=biber]{biblatex} -% \usepackage{svg} \usepackage[inkscapeformat=png]{svg} + +\graphicspath{ {images/} } \addbibresource{References.bib} \includeonly{preliminary/title.tex,% preliminary/dedication.tex,% preliminary/abstract.tex,% +preliminary/acronyms.tex,% chapters/introduction.tex,% chapters/chapter1.tex } -\makeglossaries -\input{preliminary/acronyms.tex} \begin{document} @@ -27,12 +27,11 @@ chapters/chapter1.tex %-------------------------------------------- \include{preliminary/title.tex} - -\include{preliminary/copyright.tex} +% \include{preliminary/copyright.tex} \include{preliminary/dedication.tex} -\include{preliminary/approval-sheet.tex} -\include{preliminary/certificate.tex} -\include{preliminary/acknowledgement.tex} +% \include{preliminary/approval-sheet.tex} +% \include{preliminary/certificate.tex} +% \include{preliminary/acknowledgement.tex} \include{preliminary/dedication.tex} \include{preliminary/abstract.tex} @@ -43,17 +42,17 @@ chapters/chapter1.tex \tableofcontents \listoffigures \listoftables - +\include{preliminary/acronyms} %----------------- chapters -------------------- \pagenumbering{arabic} %--------------------------------------- \include{chapters/introduction.tex} -\include{chapters/chapter1.tex} +\include{chapters/chapter1} \appendix -\include{chapters/appendix.tex} +% \include{chapters/appendix.tex} \clearpage % \printglossary[type=\acronymtype] diff --git a/doc/preliminary/acronyms.tex b/doc/preliminary/acronyms.tex index 4bc57fb..14a50fb 100644 --- a/doc/preliminary/acronyms.tex +++ b/doc/preliminary/acronyms.tex @@ -1,3 +1,17 @@ -\newacronym{kg}{KG}{Knowledge Graph} -\newacronym{kgs}{KGs}{Knowledge Graphs} -\newacronym{nlp}{NLP}{Natural Language Processing} \ No newline at end of file +% \newacronym{kgs}{KGs}{Knowledge Graphs} +% \newacronym{nlp}{NLP}{Natural Language Processing} +% \acro{ecu}[ECU]{European currency unit} +% \begin{acronym}[ECU] + + +\chapter*{List of abbreviations} +\begin{acronym} +\acro{kg}[KG]{Knowledge graph} +\acro{kb}[KB]{Knowledge base} +\acro{qe}[QE]{Questioning Engine} +\acro{nlp}[NLP]{Natural Language Processing} + +\acro{qg}[QG]{Question generation} + +\end{acronym} +