From 6eb405f8bd3fa98aa20de56280747e14b1fcda18 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 15 Jun 2020 18:30:03 +0200 Subject: [PATCH] merger: selecting only relevant columns --- R/merger.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/merger.R b/R/merger.R index ed16153..22f74f4 100644 --- a/R/merger.R +++ b/R/merger.R @@ -14,6 +14,7 @@ ## Only merging lemmas for now, feature selection has no impact on junk classification merger <- function(out, text, clean) { df <- unnest(out, cols = '_source.ud') %>% + select(`_id`,lemma,upos) %>% unnest(cols = c('lemma','upos')) %>% # This line is added in the new merger function, in the old merger function this would result in the following: # 1: when using ud, it would result in the string "NA" being present in place of the faulty lemma