org.apache.mahout.common.nlp
Class NGrams
java.lang.Object
org.apache.mahout.common.nlp.NGrams
public class NGrams
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NGrams
public NGrams(String line,
int gramSize)
generateNGrams
public Map<String,List<String>> generateNGrams()
generateNGramsWithoutLabel
public List<String> generateNGramsWithoutLabel()
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.