我想计算文本中每行单词的共现次数,即一个单词与其他单词在同一行中出现的次数。为此,我创建了一个特殊的词对类,因此MapReduce会给我词对,然后是计数。问题是,我只想展示不同单词的共现。这是代码:publicclassCo_OcurrenciaMapperextendsMapper{@Overridepublicvoidmap(LongWritablekey,Textvalue,Contextcontext)throwsIOException,InterruptedException{IntWritableone=newIntWritable(1);String[]palabras=