Following the numerous tutorials on creating biGrams using the tm and RWeka packages, I was disappointed that only 1 grams returned in TOGO . Thanks to a lot of trial and error, I found that the correct function was achieved using VCorpus ', but not using Corpus . By the way, I am sure that this worked with the "Corps" ~ 1 month ago, but this is not now.
R (3.3.3), RTools (3.4), RStudio (1.0.136) and all packages (tm 0.7-1, RWeka 0.4-31) have been updated to the latest version.
I would appreciate any understanding that this would not work with Corpus, and if others would have the same problem.
Result Using Case
[1] "congress" "establishment" "law" "make" [5] "respecting" "shall" "exercise" "free" [9] "prohibiting" "religion" "the" "thereof" [13] "abridging" "freedom" "press" "speech" [17] "and" "assemble" "peaceably" "people" [21] "petition" "right" "for" "government" [25] "grievances" "redress"
Result with 'VCorpus'
[1] "a redress" "abridging the" "an establishment" "and to" [5] "assemble and" "congress shall" "establishment of" "exercise thereof" [9] "for a" "free exercise" "freedom of" "government for" [13] "law respecting" "make no" "no law" "of grievances" [17] "of speech" "of the" "or of" "or prohibiting" [21] "or the" "peaceably to" "people peaceably" "press or" [25] "prohibiting the" "redress of" "religion or" "respecting an" [29] "right of" "shall make" "speech or" "the free" [33] "the freedom" "the government" "the people" "the press" [37] "thereof or" "to assemble" "to petition"
source share