akc icon indicating copy to clipboard operation
akc copied to clipboard

Error with Rake Created keywords

Open snvv opened this issue 2 years ago • 2 comments
trafficstars

Hello I have a df with some text and I used skowraker to create keywords for each row. When I run the script

mydata %>% keyword_clean(id = "doc_id", keyword = "keyword_rake", sep = ";", rmParentheses = TRUE, rmNumber = TRUE, lemmatize = FALSE, lemmatize_dict = NULL) -> clean_data

clean_data

clean_data %>% keyword_merge( id = "doc_id", keyword = "keyword_rake", reduce_form = "lemma", lemmatize_dict = NULL, stem_lang = "porter") -> merged_data

I get the following error:

Error in setnames(., old = c(id, keyword), new = c("id", "keyword")) : Items of 'old' not found in column names: [keyword_rake]. Consider skip_absent=TRUE.

What is wrong in this case? Regards

snvv avatar May 01 '23 16:05 snvv

Can you put your data and code in a repo so I can reproduce your results?

hope-data-science avatar May 01 '23 16:05 hope-data-science

I apologize for the bug report. The bug was in my code. It works as expected. Regards

snvv avatar May 01 '23 17:05 snvv