{"action":"created","issue":{"url":"https://api.github.com/repos/dselivanov/text2vec/issues/113","repository_url":"https://api.github.com/repos/dselivanov/text2vec","labels_url":"https://api.github.com/repos/dselivanov/text2vec/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/dselivanov/text2vec/issues/113/comments","events_url":"https://api.github.com/repos/dselivanov/text2vec/issues/113/events","html_url":"https://github.com/dselivanov/text2vec/issues/113","id":165362982,"number":113,"title":"very last version of text2vec (0.4) : error with create_vocabulary","user":{"login":"dominiqueemmanuel","id":4983353,"avatar_url":"https://avatars.githubusercontent.com/u/4983353?v=3","gravatar_id":"","url":"https://api.github.com/users/dominiqueemmanuel","html_url":"https://github.com/dominiqueemmanuel","followers_url":"https://api.github.com/users/dominiqueemmanuel/followers","following_url":"https://api.github.com/users/dominiqueemmanuel/following{/other_user}","gists_url":"https://api.github.com/users/dominiqueemmanuel/gists{/gist_id}","starred_url":"https://api.github.com/users/dominiqueemmanuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominiqueemmanuel/subscriptions","organizations_url":"https://api.github.com/users/dominiqueemmanuel/orgs","repos_url":"https://api.github.com/users/dominiqueemmanuel/repos","events_url":"https://api.github.com/users/dominiqueemmanuel/events{/privacy}","received_events_url":"https://api.github.com/users/dominiqueemmanuel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-13T16:20:54Z","updated_at":"2016-07-13T17:26:04Z","closed_at":null,"body":"Hi,\r\n\r\nI have installed the very last dev version of text2vec (0.4 build today) and I get an error with `create_vocabulary` :\r\n\r\n```\r\n# devtools::install_github(\"dselivanov/text2vec\",ref = \"0.4\")\r\nlibrary(text2vec)\r\ntxt <- c(\"a simple verbatim test\",\"another simple verbatim test\")\r\nit <- itoken(txt, preprocess_function = identity,tokenizer = word_tokenizer)\r\nvocab <- create_vocabulary(it,ngram = c(ngram_min = 1L, ngram_max = 1L)) %>%\r\nprune_vocabulary(term_count_min = 3,max_number_of_terms=1000)\r\n#Error in eval(expr, envir, enclos) : \r\n# no valid constructor available for the argument list\r\n\r\ntraceback()\r\n#13: stop(list(message = \"no valid constructor available for the argument list\", \r\n#        call = eval(expr, envir, enclos), cppstack = NULL))\r\n#12: .External(class__newInstance, module, pointer, ...)\r\n#11: new_CppObject_xp(fields$.module, fields$.pointer, ...)\r\n#10: cpp_object_initializer(.self, .refClassDef, ...)\r\n#9: .Object$initialize(...)\r\n#8: initialize(value, ...)\r\n#7: initialize(value, ...)\r\n#6: new(VocabularyBuilder, ngram_min, ngram_max, stopwords, sep_ngram)\r\n#5: create_vocabulary.itoken(it, ngram = c(ngram_min = 1L, ngram_max = 1L))\r\n#4: create_vocabulary(it, ngram = c(ngram_min = 1L, ngram_max = 1L))\r\n#3: eval(expr, envir, enclos)\r\n#2: eval(lhs, parent, parent)\r\n#1: create_vocabulary(it, ngram = c(ngram_min = 1L, ngram_max = 1L)) %>% \r\n#       prune_vocabulary(term_count_min = 3, max_number_of_terms = 1000)\r\n```\r\nMy session info is :\r\n```\r\nsessionInfo()\r\n#R version 3.3.1 (2016-06-21)\r\n#Platform: x86_64-w64-mingw32/x64 (64-bit)\r\n#Running under: Windows 7 x64 (build 7601) Service Pack 1\r\n#\r\n#locale:\r\n#[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252\r\n#[4] LC_NUMERIC=C                   LC_TIME=French_France.1252    \r\n#\r\n#attached base packages:\r\n#[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n#\r\n#other attached packages:\r\n#[1] text2vec_0.4.0\r\n#\r\n#loaded via a namespace (and not attached):\r\n# [1] magrittr_1.5        Matrix_1.2-6        tools_3.3.1         Rcpp_0.12.5         codetools_0.2-14    grid_3.3.1        # \r\n# [7] foreach_1.4.3       iterators_1.0.8     data.table_1.9.7    digest_0.6.9        chron_2.3-47        #RcppParallel_4.3.19\r\n#[13] lattice_0.20-33  \r\n```\r\nNB : the problem seems not to happen in Unix!\r\n\r\nDo you have any idea to solve the problem ? Can I help ?\r\n\r\nBest regards,\r\nDom\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dselivanov/text2vec/issues/comments/232426824","html_url":"https://github.com/dselivanov/text2vec/issues/113#issuecomment-232426824","issue_url":"https://api.github.com/repos/dselivanov/text2vec/issues/113","id":232426824,"user":{"login":"dselivanov","id":5123805,"avatar_url":"https://avatars.githubusercontent.com/u/5123805?v=3","gravatar_id":"","url":"https://api.github.com/users/dselivanov","html_url":"https://github.com/dselivanov","followers_url":"https://api.github.com/users/dselivanov/followers","following_url":"https://api.github.com/users/dselivanov/following{/other_user}","gists_url":"https://api.github.com/users/dselivanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dselivanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dselivanov/subscriptions","organizations_url":"https://api.github.com/users/dselivanov/orgs","repos_url":"https://api.github.com/users/dselivanov/repos","events_url":"https://api.github.com/users/dselivanov/events{/privacy}","received_events_url":"https://api.github.com/users/dselivanov/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T17:26:04Z","updated_at":"2016-07-13T17:26:04Z","body":"does this version work ?\r\n```r\r\ndevtools::install_github(\"dselivanov/text2vec@23bb77483aba58f1a2aa9a3a6a90f089ee2cbbbc\")\r\n```"}}
{"actor":{"display_login":"dselivanov"}}