Newer
Older
# Define paths
project_root <- find_root(has_file("README.md"))
data_dir <- paste(project_root, "data", sep = .Platform$file.sep)
# Within this function article is a vector representing a single row of our original data frame
# This means article[1] represents the Title, article[2] the PageID etc.
annotation <- create_annotations(cleaned.text, article[2], article[3], data.dir = data_dir)
NoSpouses = no.spouses,
stringsAsFactors = FALSE)
cat("Writing rasa files to 'rasa/'...\n")