Hi,
I applied quanteda::dfm on a list of tokens of size 50000 and it works.
> grams[[1]] = quanteda::dfm(tokens[1:50000], ngrams = 1) --> works
> grams[[1]] = quanteda::dfm(tokens[50000:100000], ngrams = 1) --> works
When I apply it on larger list of tokens, it fails.
> grams[[1]] = quanteda::dfm(tokens[1:100000], ngrams = 1) --> throws following error
Error in qatd_cpp_tokens_ngrams(x, types(x), concatenator, n, skip + 1) :
std::bad_alloc
Please suggest me a solution. I would like to apply it on a list of size 500k
R version: 3.5.1
quanteda version: 1.3.3
OS version: Ubuntu 16.04.4
Hi,
I applied quanteda::dfm on a list of tokens of size 50000 and it works.
> grams[[1]] = quanteda::dfm(tokens[1:50000], ngrams = 1)--> works> grams[[1]] = quanteda::dfm(tokens[50000:100000], ngrams = 1)--> worksWhen I apply it on larger list of tokens, it fails.
> grams[[1]] = quanteda::dfm(tokens[1:100000], ngrams = 1)--> throws following errorPlease suggest me a solution. I would like to apply it on a list of size 500k
R version: 3.5.1
quanteda version: 1.3.3
OS version: Ubuntu 16.04.4