public final class MatrixUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String[] |
invertDictionary(OpenObjectIntHashMap<String> termIdMap) |
static Matrix |
read(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path... modelPaths) |
static OpenObjectIntHashMap<String> |
readDictionary(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path... dictPath) |
static void |
write(org.apache.hadoop.fs.Path outputDir,
org.apache.hadoop.conf.Configuration conf,
VectorIterable matrix) |
public static void write(org.apache.hadoop.fs.Path outputDir, org.apache.hadoop.conf.Configuration conf, VectorIterable matrix) throws IOException
IOException
public static Matrix read(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path... modelPaths) throws IOException
IOException
public static OpenObjectIntHashMap<String> readDictionary(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path... dictPath)
public static String[] invertDictionary(OpenObjectIntHashMap<String> termIdMap)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.