public static class AbstractCoOccurrences.Builder<T extends SequenceElement>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
maxmemory |
protected SequenceIterator<T> |
sequenceIterator |
protected boolean |
symmetric |
protected java.io.File |
target |
protected VocabCache<T> |
vocabCache |
protected int |
windowSize |
protected int |
workers |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AbstractCoOccurrences<T> |
build() |
AbstractCoOccurrences.Builder<T> |
iterate(SequenceIterator<T> iterator) |
AbstractCoOccurrences.Builder<T> |
maxMemory(int gbytes)
This method allows you to specify maximum memory available for CoOccurrence map builder.
|
AbstractCoOccurrences.Builder<T> |
symmetric(boolean reallySymmetric) |
AbstractCoOccurrences.Builder<T> |
targetFile(java.io.File file)
Path to save cooccurrence map after construction.
|
AbstractCoOccurrences.Builder<T> |
targetFile(java.lang.String path)
Path to save cooccurrence map after construction.
|
AbstractCoOccurrences.Builder<T> |
vocabCache(VocabCache<T> cache) |
AbstractCoOccurrences.Builder<T> |
windowSize(int windowSize) |
AbstractCoOccurrences.Builder<T> |
workers(int numWorkers) |
protected boolean symmetric
protected int windowSize
protected VocabCache<T extends SequenceElement> vocabCache
protected SequenceIterator<T extends SequenceElement> sequenceIterator
protected int workers
protected java.io.File target
protected long maxmemory
public AbstractCoOccurrences.Builder<T> symmetric(boolean reallySymmetric)
public AbstractCoOccurrences.Builder<T> windowSize(int windowSize)
public AbstractCoOccurrences.Builder<T> vocabCache(@NonNull VocabCache<T> cache)
public AbstractCoOccurrences.Builder<T> iterate(@NonNull SequenceIterator<T> iterator)
public AbstractCoOccurrences.Builder<T> workers(int numWorkers)
public AbstractCoOccurrences.Builder<T> maxMemory(int gbytes)
gbytes
- memory available, in GigaBytespublic AbstractCoOccurrences.Builder<T> targetFile(@NonNull java.lang.String path)
path
- public AbstractCoOccurrences.Builder<T> targetFile(@NonNull java.io.File file)
file
- public AbstractCoOccurrences<T> build()