actor_fetcher: added minimum verbosity to identify cases in which an actor is present without a party mention

master
Erik de Vries 5 years ago
parent 82ef165c5f
commit d0601d2aa7

@ -59,7 +59,7 @@ actor_fetcher <- function(out, sent_dict = NULL, cores = 1, localhost = NULL, va
) )
) )
} else { } else {
print(id) print(paste0('id:',id))
return(NULL) return(NULL)
} }
} }
@ -108,7 +108,8 @@ actor_fetcher <- function(out, sent_dict = NULL, cores = 1, localhost = NULL, va
### Get list of party ids occuring more than once in the document ### Get list of party ids occuring more than once in the document
pids_table <- table(out_row$pids) pids_table <- table(out_row$pids)
dupe_pids <- names(pids_table[pids_table > 1]) dupe_pids <- names(pids_table[pids_table > 1])%>%
str_subset(pattern = fixed('P_'))
single_pids <- names(pids_table[pids_table <= 1]) %>% single_pids <- names(pids_table[pids_table <= 1]) %>%
str_subset(pattern = fixed('P_')) str_subset(pattern = fixed('P_'))
### Data frame containing only duplicate party ids ### Data frame containing only duplicate party ids

Loading…
Cancel
Save