public class PrintTopicWordWeights extends Object
ParallelTopicModel
files
and print them with normalized proportion to a new file.
Command line arguments are a list of ParallelTopicModel
file locations each followed by
the number of words to print for it, e.g.: java -jar PrintTopicWordWeights model1 100
model2 1000
.
Constructor and Description |
---|
PrintTopicWordWeights(File modelFile,
int nWords)
Initialize.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
writeWords(File targetFile)
Write the output for single file.
|
public PrintTopicWordWeights(File modelFile, int nWords) throws IOException
modelFile
- the file containing the modelnWords
- the number of words that should be written for each topicIOException
- if the model cannot be readpublic void writeWords(File targetFile) throws IOException
targetFile
- the file into which the output is writtenIOException
- if an I/O error occurs while writing to the output filepublic static void main(String[] args) throws IOException
IOException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.