-
Notifications
You must be signed in to change notification settings - Fork 2
Loop across multiple lemmas causing error #5
Description
In the process_cloud vignette, when I run the multiple lemma loop,
the output would say 'new names'

and then HDBSCAN would say this error
Full traceback
Warning: error 1 in extracting from zip fileError in map():
ℹ In index: 1.
ℹ With name: hand.nobound2-1VDAJ.PPMIselection.LENGTH3000.SOCPOSGEN.
Caused by error:
! Expecting a single string value: [type=NULL; extent=0].
Backtrace:
- purrr::map(...)
- base::stop(
<Rcpp::n_>)
Error in map(setNames(models, models), summarizeHDBSCAN, lemma = lemma, :
ℹ With name: hand.nobound2-1VDAJ.PPMIselection.LENGTH3000.SOCPOSGEN.
Caused by error:
! Expecting a single string value: [type=NULL; extent=0].
18.
stop(fallback)
17.
signal_abort(cnd, .file)
16.
rlang::abort(message, ..., call = call, use_cli_format = TRUE,
.frame = .frame)
15.
cli::cli_abort(message, location = i, name = name, parent = cnd,
call = error_call, class = "purrr_error_indexed")
14.
(function (cnd)
{
if (i == 0L) {
} ...
13.
stop(structure(list(message = "Expecting a single string value: [type=NULL; extent=0].",
call = NULL, cppstack = NULL), class = c("Rcpp::not_compatible",
"C++Error", "error", "condition")))
12.
RcppCNPy::npyLoad(temp[2])
11.
tokensFromPac(file.path(input_dir, ttmx))
10.
apply(mat, 1, rank)
9.
t(apply(mat, 1, rank))
8.
transformMats(., TRUE)
7.
tokensFromPac(file.path(input_dir, ttmx)) %>% transformMats(TRUE)
6.
.f(.x[[i]], ...)
5.
call_with_cleanup(map_impl, environment(), .type, .progress,
n, names, i)
4.
withCallingHandlers(expr, error = function(cnd) {
if (i == 0L) {
}
else { ...
3.
with_indexed_errors(i = i, names = names, error_call = .purrr_error_call,
call_with_cleanup(map_impl, environment(), .type, .progress,
n, names, i))
2.
map_("list", .x, .f, ..., .progress = .progress)
1.
map(setNames(models, models), summarizeHDBSCAN, lemma = lemma,
input_dir = input_dir, output_dir = output_dir, coords_name = ".tsne.30")
This does not happen with single lemma workflow
