public class FixedDurationTemporalRandomIndexingMain extends Object
FixedDurationTemporalRandomIndexing
from the command-line.TemporalRandomIndexing
,
RandomIndexing
Modifier and Type | Method and Description |
---|---|
protected ArgOptions |
createOptions()
Adds all of the options to the
ArgOptions . |
static void |
main(String[] args) |
protected void |
parseDocumentsMultiThreaded(FixedDurationTemporalRandomIndexing fdTri,
Iterator<TemporalDocument> docIter,
TimeSpan timeSpan,
int numThreads)
Calls
processDocument once for every document in docIter using a the
specified number thread to call processSpace on the TemporalSemanticSpace instance. |
void |
run(String[] args) |
protected Properties |
setupProperties()
Returns the
Properties used to set up the semantic space. |
protected void |
usage()
Prints the instructions on how to execute this program to standard out.
|
protected void |
verbose(String msg) |
protected void |
verbose(String format,
Object... args) |
protected ArgOptions createOptions()
ArgOptions
.public static void main(String[] args)
protected Properties setupProperties()
Properties
used to set up the semantic space.protected void parseDocumentsMultiThreaded(FixedDurationTemporalRandomIndexing fdTri, Iterator<TemporalDocument> docIter, TimeSpan timeSpan, int numThreads) throws IOException, InterruptedException
processDocument
once for every document in docIter
using a the
specified number thread to call processSpace
on the TemporalSemanticSpace
instance.sspace
- the space to builddocIter
- an iterator over all the documents to processnumThreads
- the number of threads to useIOException
InterruptedException
protected void usage()
protected void verbose(String msg)
Copyright © 2012. All Rights Reserved.