Skip to content
Snippets Groups Projects
Commit fce5b5b9 authored by David Fuhry's avatar David Fuhry :fist:
Browse files

Merge branch 'add-master-script' into 'master'

Add master script

See merge request !7
parents 7c926b51 68d4f7aa
No related branches found
No related tags found
1 merge request!7Add master script
#!/usr/bin/env Rscript
### This script consolidates everything
## Librarys
#library(SomeLibrary)
## Load Scripts
cat("Sourcing R scripts... ")
source("r/GetData.R")
#source("r/getBirthday.R")
#source("r/getSomethingElse.R")
cat("Done.\n")
## Fetch data
cat("Starting data import...\n")
articles <- getData(use.cache = TRUE)
## Data processing
cat("Processing data...\n")
results <- lapply(articles, function(data) {
## Data cleaning
# cleaned.text <- someCleanFunctioN(data$Text)
## Data preprocessing/annotating
# annotated.text <- annotationFunction(data$Text)
## Extract information from Text
# someFact <- getFactFromTextFunctioN(annotated.text)
# someOtherFact <- getOtherFactFromText(data$Text)
## Create Results
# data.frame(Name = x$Name,
# FactOne = someFact,
# FactTwo = someOtherFact)
})
results <- do.call(rbind, results)
## Results are now in results
## Format for rasa
# someFormatFunction(results)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment