public class IndexVectorUtil extends Object
TernaryVector
mappings. This class is intended to provide the ability to preseve the same
mapping between corpora, or between algorithms that both use TernaryVectors
s as index vectors.Modifier and Type | Method and Description |
---|---|
static Map<String,TernaryVector> |
load(File indexVectorFile)
Loads a mapping from word to
TernaryVector from the file |
static void |
save(Map<String,TernaryVector> wordToIndexVector,
File output)
Saves the mapping from word to
TernaryVector to the specified
file. |
public static void save(Map<String,TernaryVector> wordToIndexVector, File output)
TernaryVector
to the specified
file.public static Map<String,TernaryVector> load(File indexVectorFile)
TernaryVector
from the fileCopyright © 2012. All Rights Reserved.