Skip to content

Loop across multiple lemmas causing error #5

@phantatbach

Description

@phantatbach

In the process_cloud vignette, when I run the multiple lemma loop,
the output would say 'new names'
{BB35B0F6-9EEB-47B5-AEA6-9598411412DB}

and then HDBSCAN would say this error

{6BA00228-A5C4-438D-8AB3-07ACDEEB808A}

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:

  1. purrr::map(...)
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions