akash
February 12, 2019, 7:28am
1
I am getting below error when using Vectorizer from text2vec library
Error in if (attr(vectorizer, "grow_dtm", TRUE) == FALSE) stop("You should provide vectorizer with grow_dtm = TRUE") :
argument is of length zero
Please help me on this as it worked fine on R studio but when i kept the same code on diffrent server, i got this issue
We don't really have enough info to help you out. Could you ask this with a minimal REPR oducible EX ample (reprex) ? A reprex makes it much easier for others to understand your issue and figure out how to help.
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
1 Like
akash
February 12, 2019, 3:05pm
3
It's a version issue. i was running rds file in lower version of R.
Thanks so much for your help.
cderv
February 12, 2019, 10:37pm
4
Hav you found a solution?
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
If your question has been answered, don't forget to mark the solution!
How do I mark a solution?
Find the reply you want to mark as the solution and look for the row of small gray icons at the bottom of that reply. Click the one that looks like a box with a checkmark in it:
[image]
Hovering over the mark solution button shows the label, "Select if this reply solves the problem". If you don't see the mark solution button, try clicking the three dots button ( ••• ) to expand the full set of options.
When a solution is chosen, the icon turns green and the hover label changes to: "Unselect if this reply no longer solves the problem". Success!
[solution_reply_author]
…
1 Like
system
Closed
March 5, 2019, 10:44pm
5
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.