Skip to content

Commit

Permalink
fix newline
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobas committed Feb 24, 2023
1 parent 1c3990f commit 75bc68a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ensemble.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ detect_sdg = function(text,


# run systems
if(verbose) cat("\nRunning systems",sep = '')
if(verbose) cat("Running systems",sep = '')

# run detect sdg
system_hits = detect_sdg_systems(text = corpus,
Expand All @@ -98,7 +98,7 @@ detect_sdg = function(text,
}

# add lengths
if(verbose) cat("\nObtaining text lengths",sep = '')
if(verbose) cat("Obtaining text lengths",sep = '')
lens = table(corpus$tokens$doc_id)
lens = tibble::tibble(document = factor(names(lens)),
n_words = c(lens))
Expand Down
2 changes: 2 additions & 0 deletions R/systems.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ detect_sdg_systems = function(text,
hits[["SDGO"]] = detect_sdgo(corpus, sdgs)}


# newline
cat("\n")
#combine lists to df
hits <- dplyr::bind_rows(hits)

Expand Down

0 comments on commit 75bc68a

Please sign in to comment.