public class TemporalSemanticSpaceUtils extends Object
TemporalSemanticSpace
instances.
A temporal semantic space can be written in one of two formats:
TemporalSemanticSpace
Modifier and Type | Class and Description |
---|---|
static class |
TemporalSemanticSpaceUtils.TSSpaceFormat
The type of formatting to use when writing a semantic space to a file.
|
Modifier and Type | Method and Description |
---|---|
static TemporalSemanticSpace |
loadTemporalSemanticSpace(File sspaceFile)
Loads and returns the
TemporalSemanticSpace stored at the file in
text format. |
static TemporalSemanticSpace |
loadTemporalSemanticSpace(File sspaceFile,
TemporalSemanticSpaceUtils.TSSpaceFormat format)
Loads and returns the
TemporalSemanticSpace stored at the file in
the specified format. |
static TemporalSemanticSpace |
loadTemporalSemanticSpace(String sspaceFileName)
Loads and returns the
TemporalSemanticSpace stored at the file
name in text format. |
static void |
printTemporalSemanticSpace(TemporalSemanticSpace sspace,
File output)
Writes the data contained in the
TemporalSemanticSpace to the
provided file using the TemporalSemanticSpaceUtils.TSSpaceFormat.TEXT format. |
static void |
printTemporalSemanticSpace(TemporalSemanticSpace sspace,
File output,
TemporalSemanticSpaceUtils.TSSpaceFormat format)
Writes the data contained in the
TemporalSemanticSpace to the
provided file and format. |
static void |
printTemporalSemanticSpace(TemporalSemanticSpace sspace,
String outputFileName)
Writes the data contained in the
TemporalSemanticSpace to the
file with the provided name using the TemporalSemanticSpaceUtils.TSSpaceFormat.TEXT format. |
public static TemporalSemanticSpace loadTemporalSemanticSpace(String sspaceFileName)
TemporalSemanticSpace
stored at the file
name in text
format.sspaceFileName
- the name of a file containing a TemporalSemanticSpace
that has been written to diskpublic static TemporalSemanticSpace loadTemporalSemanticSpace(File sspaceFile)
TemporalSemanticSpace
stored at the file in
text
format.sspaceFile
- a file containing a TemporalSemanticSpace
that
has been written to diskpublic static TemporalSemanticSpace loadTemporalSemanticSpace(File sspaceFile, TemporalSemanticSpaceUtils.TSSpaceFormat format)
TemporalSemanticSpace
stored at the file in
the specified format.sspaceFile
- a file containing a TemporalSemanticSpace
that
has been written to diskformat
- the format of the TemporalSemanticSpace
in the filepublic static void printTemporalSemanticSpace(TemporalSemanticSpace sspace, String outputFileName) throws IOException
TemporalSemanticSpace
to the
file with the provided name using the TemporalSemanticSpaceUtils.TSSpaceFormat.TEXT
format.
See here for file format specifications.IOException
public static void printTemporalSemanticSpace(TemporalSemanticSpace sspace, File output) throws IOException
TemporalSemanticSpace
to the
provided file using the TemporalSemanticSpaceUtils.TSSpaceFormat.TEXT
format. See here for file format specifications.IOException
public static void printTemporalSemanticSpace(TemporalSemanticSpace sspace, File output, TemporalSemanticSpaceUtils.TSSpaceFormat format) throws IOException
TemporalSemanticSpace
to the
provided file and format. See here for file format
specifications.IOException
Copyright © 2012. All Rights Reserved.