List of usage examples for org.apache.mahout.vectorizer.collocations.llr CollocDriver EMIT_UNIGRAMS
String EMIT_UNIGRAMS
To view the source code for org.apache.mahout.vectorizer.collocations.llr CollocDriver EMIT_UNIGRAMS.
Click Source Link
From source file:edu.rosehulman.CollocMapper.java
License:Apache License
@Override protected void setup(Context context) throws IOException, InterruptedException { super.setup(context); Configuration conf = context.getConfiguration(); this.maxShingleSize = conf.getInt(MAX_SHINGLE_SIZE, DEFAULT_MAX_SHINGLE_SIZE); this.emitUnigrams = conf.getBoolean(CollocDriver.EMIT_UNIGRAMS, CollocDriver.DEFAULT_EMIT_UNIGRAMS); if (log.isInfoEnabled()) { log.info("Max Ngram size is {}", this.maxShingleSize); log.info("Emit Unitgrams is {}", emitUnigrams); }//from ww w .j a va 2 s. c om }