LiYingWang / Explanation

MIT License
1 stars 1 forks source link

incorrect method to unpack 2 grams #7

Open benmarwick opened 9 years ago

benmarwick commented 9 years ago

The JSTOR_unpack_multiple_archives function only handles 1-grams. To read in the bigrams, first unzip the bigram zip file, then use the JSTOR_unpack2grams function like so:

# assuming you have set your working directory to be in the unzipped bigrams files
multiple_archives2 <-  multiple_archives2 <- JSTOR_unpack2grams()

As i investigated this I found another error due to a change in the way the 'stringr' package works, but I've fixed that now. You'll need to do this before doing anything else devtools::install_github("benmarwick/JSTORr")

benmarwick commented 9 years ago

This completed successfully on my computer, so I suspect the main problem is a shortage of RAM on your computer. Can you try it on the DigAR lab computers and let me know how you go, before we meet for class next week?

setwd("/2015.4.24.kqSmMTcV_American_Antiquity_bigrams")
library(JSTORr)
multiple_archives2 <- JSTOR_unpack2grams()