* @throws IOException if there's a problem with the ShingleFilter reading data or the collector collecting output.
*/
@Override
protected void map(Text key, StringTuple value, final Context context) throws IOException, InterruptedException {
ShingleFilter sf = new ShingleFilter(new IteratorTokenStream(value.getEntries().iterator()), maxShingleSize);
int count = 0; // ngram count
OpenObjectIntHashMap<String> ngrams =
new OpenObjectIntHashMap<String>(value.getEntries().size() * (maxShingleSize - 1));
OpenObjectIntHashMap<String> unigrams = new OpenObjectIntHashMap<String>(value.getEntries().size());