public static class LdaCWriter.Writer extends Object
| Constructor and Description |
|---|
LdaCWriter.Writer(String separator,
String outputFile,
List<String> providedVocabulary) |
LdaCWriter.Writer(String separator,
String outputFile,
String vocabularyOutputFile) |
public LdaCWriter.Writer(String separator, String outputFile, String vocabularyOutputFile) throws IOException
separator - ':' for LDA-C, ' ' for DCAoutputFile - vocabularyOutputFile - new vocabulary file to outputIOExceptionpublic LdaCWriter.Writer(String separator, String outputFile, List<String> providedVocabulary) throws IOException
separator - ':' for LDA-C, ' ' for DCAoutputFile - providedVocabulary - existing vocabulary file to use. Words not found in this
vocabulary are simply ignoredIOExceptionpublic boolean addDocument(List<String> words)
public void close()
throws IOException
IOExceptionCopyright © 2015 Bluebrain Project. All rights reserved.