From 890ddf0a989162159e583f7746316fc663b21be4 Mon Sep 17 00:00:00 2001 From: shoneyj Date: Wed, 31 May 2023 09:43:31 +0200 Subject: [PATCH] doc: text corpus --- doc/References.bib | 19 +++++++++++++++++++ doc/chapters/chapter1.tex | 8 ++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/doc/References.bib b/doc/References.bib index 0979eb3..217cfbf 100644 --- a/doc/References.bib +++ b/doc/References.bib @@ -15,6 +15,12 @@ note = "[Online; accessed 01-May-2023]" } +@online{wikiapi, + year = {2023}, + title = {Wikipedia API documentation}, + url = {https://wikipedia-api.readthedocs.io/en/latest/wikipediaapi/api.html}, +} + @inproceedings{rehurek_lrec, title = {{Software Framework for Topic Modelling with Large Corpora}}, author = {Radim {\v R}eh{\r u}{\v r}ek and Petr Sojka}, @@ -102,4 +108,17 @@ author = {Lupe Hernandez and Sam Randall, Ahmad Nazeri}, +% This file was created with Citavi 6.15.2.0 + +@article{TorstenZesch, + title = {Analyzing and Accessing Wikipedia as a Lexical Semantic Resource}, + author = {Torsten Zesch, Iryna Gurevych, Max Mühlhäuser +}, + url = {https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=96fcad8bec2bce17d70ca60b042529dd5be513cc}, + urldate = {30/05/2023} +} + + + + diff --git a/doc/chapters/chapter1.tex b/doc/chapters/chapter1.tex index 8c6807f..0930d37 100644 --- a/doc/chapters/chapter1.tex +++ b/doc/chapters/chapter1.tex @@ -13,13 +13,17 @@ The knowledge base is a dataset with formal semantics that can contain different 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. +\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 reliance on handcrafted rule based systems. + +\clearpage \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. +In linguistics and \acs{nlp}, corpus refers to a collection of texts. This paper's objective is to web crawl and extract data related to "Motor Oil". Our intention is to fetch the unstructred text corpus specifically related to "Motor Oil" and to create a graph-based \acs{kb}. + +Wikipedia\footnote{https://www.wikipedia.org/} is primarily an encyclopedia with the additional benefit of heavy linking between articles and without the size constraints of paper articles \parencite{TorstenZesch}. Wikipedia API \footnote{https://pypi.org/project/Wikipedia-API/}