Argument ngrams not used

Viewed 585

I use quanteda for text analysis

I use this commands

corp_df2 <- 
    tokens(df$text,
           remove_punct = TRUE, 
           remove_numbers = TRUE, 
           remove_symbols = TRUE) %>%
    tokens_remove(pattern = stopwords(source = "smart")) %>%
      tokens_wordstem()

corp_df3 <- dfm(corp_df2) %>%
    dfm_trim(min_termfreq = 0.95, termfreq_type = "quantile") 

myDfm <- dfm(corp_df3, ngrams = c(1,3))

But I receive this error

Argument ngrams not used.

How can I use the command to receive ngrams?

0 Answers
Related