{"id":21287,"date":"2023-07-28T20:27:50","date_gmt":"2023-07-28T18:27:50","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/what-is-the-best-way-to-get-information-off-of-a-wiki-for-natural-language-processing\/"},"modified":"2023-07-28T20:27:50","modified_gmt":"2023-07-28T18:27:50","slug":"what-is-the-best-way-to-get-information-off-of-a-wiki-for-natural-language-processing","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/what-is-the-best-way-to-get-information-off-of-a-wiki-for-natural-language-processing\/","title":{"rendered":"What Is The Best Way To Get Information Off Of A Wiki For Natural Language Processing?"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>So far I&#8217;m using two python libraries<\/p>\n<p><a href=\"https:\/\/pypi.org\/project\/wikitextparser\/\">https:\/\/pypi.org\/project\/wikitextparser\/<\/a> <a href=\"https:\/\/mwclient.readthedocs.io\/en\/latest\/\">https:\/\/mwclient.readthedocs.io\/en\/latest\/<\/a> <\/p>\n<p>to get pages from categories from a media Wiki architectured website (<a href=\"https:\/\/nethackwiki.com\/\">https:\/\/nethackwiki.com<\/a>). However the parser that I&#8217;m using does not offer the ability to interpolate the templates<\/p>\n<p>So I&#8217;m either stuck with plain text that removes all the templates and removes valuable data, or I have the raw contents that still have all of the templating syntax.<\/p>\n<p>I have no desire to write an interpolation parsing engine, is my only option to go in and strip the syntax manually?<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/ArthurFischel\"> \/u\/ArthurFischel <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/15c4bkq\/what_is_the_best_way_to_get_information_off_of_a\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/15c4bkq\/what_is_the_best_way_to_get_information_off_of_a\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-21287 jlk' href='javascript:void(0)' data-task='like' data-post_id='21287' data-nonce='65e0e39b87' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-21287 lc'>0<\/span><\/a><\/div><\/div> <div class='status-21287 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>So far I&#8217;m using two python libraries https:\/\/pypi.org\/project\/wikitextparser\/ https:\/\/mwclient.readthedocs.io\/en\/latest\/ to get pages from categories from a media&#8230;<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-21287","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/21287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=21287"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/21287\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=21287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=21287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=21287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}