match_and_write_chunks_from_wiki: Match search terms to Wikipedia

match_and_write_chunks_from_wikiR Documentation

Match search terms to Wikipedia

Description

Match search terms to Wikipedia

Usage

match_and_write_chunks_from_wiki(
  x,
  file = "saved/wiki_match.Rda",
  chunk.size = 10,
  save.every = 10,
  key.words = c("city"),
  blacklist = c("is a list of", "may also refer to", "commonly refers to"),
  valid.qids = NULL,
  language = "en"
)

Arguments

x

a character vector

file

a filepath

chunk.size

the number of search terms in each chunk - it cannot be above 50

save.every

the number of chunks between each save to file

key.words

a character vector with the keywords that should be present in a wiki article or in the wiki categories

blacklist

a character vector with blacklisted terms or phrases.

Value

a tibble


antongrau/eliter documentation built on March 2, 2024, 8:05 p.m.