↓ Skip to main content

Efficient n-gram analysis in R with cmscu

Overview of attention for article published in Behavior Research Methods, August 2016
Altmetric Badge

About this Attention Score

  • Average Attention Score compared to outputs of the same age and source

Mentioned by

twitter
3 X users

Citations

dimensions_citation
1 Dimensions

Readers on

mendeley
26 Mendeley
Title
Efficient n-gram analysis in R with cmscu
Published in
Behavior Research Methods, August 2016
DOI 10.3758/s13428-016-0766-5
Pubmed ID
Authors

David W. Vinson, Jason K. Davis, Suzanne S. Sindi, Rick Dale

Abstract

We present a new R package, cmscu, which implements a Count-Min-Sketch with conservative updating (Cormode and Muthukrishnan Journal of Algorithms, 55(1), 58-75, 2005), and its application to n-gram analyses (Goyal et al. 2012). By writing the core implementation in C++ and exposing it to R via Rcpp, we are able to provide a memory-efficient, high-throughput, and easy-to-use library. As a proof of concept, we implemented the computationally challenging (Heafield et al. 2013) modified Kneser-Ney n-gram smoothing algorithm using cmscu as the querying engine. We then explore information density measures (Jaeger Cognitive Psychology, 61(1), 23-62, 2010) from n-gram frequencies (for n=2,3) derived from a corpus of over 2.2 million reviews provided by a Yelp, Inc. dataset. We demonstrate that these text data are at a scale beyond the reach of other more common, more general-purpose libraries available through CRAN. Using the cmscu library and the smoothing implementation, we find a positive relationship between review information density and reader review ratings. We end by highlighting the important use of new efficient tools to explore behavioral phenomena in large, relatively noisy data sets.

X Demographics

X Demographics

The data shown below were collected from the profiles of 3 X users who shared this research output. Click here to find out more about how the information was compiled.
Mendeley readers

Mendeley readers

The data shown below were compiled from readership statistics for 26 Mendeley readers of this research output. Click here to see the associated Mendeley record.

Geographical breakdown

Country Count As %
Switzerland 1 4%
Unknown 25 96%

Demographic breakdown

Readers by professional status Count As %
Researcher 5 19%
Student > Ph. D. Student 5 19%
Other 4 15%
Professor > Associate Professor 3 12%
Professor 2 8%
Other 5 19%
Unknown 2 8%
Readers by discipline Count As %
Psychology 5 19%
Computer Science 4 15%
Agricultural and Biological Sciences 3 12%
Social Sciences 3 12%
Economics, Econometrics and Finance 3 12%
Other 5 19%
Unknown 3 12%
Attention Score in Context

Attention Score in Context

This research output has an Altmetric Attention Score of 1. This is our high-level measure of the quality and quantity of online attention that it has received. This Attention Score, as well as the ranking and number of research outputs shown below, was calculated when the research output was last mentioned on 10 August 2016.
All research outputs
#17,285,036
of 25,371,288 outputs
Outputs from Behavior Research Methods
#1,634
of 2,524 outputs
Outputs of similar age
#253,181
of 381,560 outputs
Outputs of similar age from Behavior Research Methods
#30
of 49 outputs
Altmetric has tracked 25,371,288 research outputs across all sources so far. This one is in the 21st percentile – i.e., 21% of other outputs scored the same or lower than it.
So far Altmetric has tracked 2,524 research outputs from this source. They typically receive more attention than average, with a mean Attention Score of 8.1. This one is in the 25th percentile – i.e., 25% of its peers scored the same or lower than it.
Older research outputs will score higher simply because they've had more time to accumulate mentions. To account for age we can compare this Altmetric Attention Score to the 381,560 tracked outputs that were published within six weeks on either side of this one in any source. This one is in the 25th percentile – i.e., 25% of its contemporaries scored the same or lower than it.
We're also able to compare this research output to 49 others from the same source and published within six weeks on either side of this one. This one is in the 36th percentile – i.e., 36% of its contemporaries scored the same or lower than it.