df_example <- data.frame(txt = c("jankowalski", "kowalskijan", "kowalskimjan",
"kowaljan", "montypython", "pythonmonty", "cyrkmontypython", "monty"))
testing <- blocking(x = df_example$txt,
deduplication = T)
testing2 <- blocking(x = df_example$txt,
deduplication = T,
true_blocks = testing$result[c(1,4,6), .(x,y,block)])
Error in modularity.igraph(graph, membership) :
At vendor/cigraph/src/community/modularity.c:132 : Membership vector size differs from number of vertices. Invalid value
> traceback()
4: modularity.igraph(graph, membership)
3: modularity(graph, membership)
2: igraph::make_clusters(eval_g1, membership = eval_blocks$block.x)
1: blocking(x = df_example$txt, deduplication = T, true_blocks = testing$result[c(1,
4, 6), .(x, y, block)])