public class TfidfUtils extends Object
Constructor and Description |
---|
TfidfUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
deserialize(String filePath) |
static DfModel |
getDfModel(String path)
Reads a
DfStore from disk. |
static void |
serialize(Object object,
String fileName) |
static void |
writeDfModel(DfModel dfModel,
String path)
Serializes the DfStore at outputPath.
|
public static void writeDfModel(DfModel dfModel, String path) throws IOException
dfModel
- a model.path
- the target path.IOException
- if the model cannot be written.public static DfModel getDfModel(String path) throws IOException
DfStore
from disk.path
- the source path.IOException
- if the model could not be read.public static void serialize(Object object, String fileName) throws IOException
IOException
public static <T> T deserialize(String filePath) throws IOException
IOException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.