public class StreamedFileBasedCorpus
extends org.dice_research.topicmodeling.utils.corpus.AbstractCorpus
| Modifier and Type | Class and Description |
|---|---|
private static class |
StreamedFileBasedCorpus.StreamedFileBasedCorpusIterator |
| Modifier and Type | Field and Description |
|---|---|
private File |
corpusFile |
private static org.slf4j.Logger |
LOGGER |
private int |
numberOfDocuments |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
StreamedFileBasedCorpus(File corpusFile,
int numberOfDocuments) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(org.dice_research.topicmodeling.utils.doc.Document document) |
void |
clear() |
org.dice_research.topicmodeling.utils.doc.Document |
getDocument(int documentId) |
List<org.dice_research.topicmodeling.utils.doc.Document> |
getDocuments(int startId,
int endId) |
int |
getNumberOfDocuments() |
Iterator<org.dice_research.topicmodeling.utils.doc.Document> |
iterator() |
addProperty, getProperties, getPropertiesIterator, getProperty, removeProperty, setPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprivate static final long serialVersionUID
private static final org.slf4j.Logger LOGGER
private int numberOfDocuments
private File corpusFile
public StreamedFileBasedCorpus(File corpusFile, int numberOfDocuments)
public int getNumberOfDocuments()
public org.dice_research.topicmodeling.utils.doc.Document getDocument(int documentId)
public void addDocument(org.dice_research.topicmodeling.utils.doc.Document document)
public void clear()
public List<org.dice_research.topicmodeling.utils.doc.Document> getDocuments(int startId, int endId)
public Iterator<org.dice_research.topicmodeling.utils.doc.Document> iterator()
Copyright © 2015–2020. All rights reserved.