|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.utils.vectors.VectorHelper
public final class VectorHelper
Method Summary | |
---|---|
static String[] |
loadTermDictionary(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
String filePattern)
Read a dictionary in SequenceFile generated by
org.apache.mahout.utils.vectors.text.DictionaryVectorizer |
static String[] |
loadTermDictionary(File dictFile)
Read in a dictionary file. |
static String |
vectorToString(Vector vector,
String[] dictionary)
Create a String from a vector that fills in the values with the appropriate value from a dictionary where each the ith entry is the term for the ith vector cell.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String vectorToString(Vector vector, String[] dictionary)
vector
- dictionary
- The dictionary. See
public static String[] loadTermDictionary(File dictFile) throws IOException
term DocFreq Index
dictFile
-
IOException
public static String[] loadTermDictionary(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, String filePattern) throws IOException
SequenceFile
generated by
org.apache.mahout.utils.vectors.text.DictionaryVectorizer
conf
- fs
- filePattern
- IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |