public static class GraphTransformer.Builder<T extends SequenceElement>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected LabelsProvider<T> |
labelsProvider |
protected boolean |
shuffle |
protected IGraph<T,?> |
sourceGraph |
protected VocabCache<T> |
vocabCache |
protected GraphWalker<T> |
walker |
Constructor and Description |
---|
Builder() |
Builder(GraphWalker<T> walker) |
Builder(IGraph<T,?> sourceGraph) |
Modifier and Type | Method and Description |
---|---|
GraphTransformer<T> |
build() |
GraphTransformer.Builder<T> |
setGraphWalker(GraphWalker<T> walker) |
GraphTransformer.Builder<T> |
setLabelsProvider(LabelsProvider<T> provider) |
GraphTransformer.Builder<T> |
setVocabCache(VocabCache<T> vocabCache) |
GraphTransformer.Builder<T> |
shuffleOnReset(boolean reallyShuffle) |
protected IGraph<T extends SequenceElement,?> sourceGraph
protected LabelsProvider<T extends SequenceElement> labelsProvider
protected GraphWalker<T extends SequenceElement> walker
protected boolean shuffle
protected VocabCache<T extends SequenceElement> vocabCache
public Builder()
public Builder(@NonNull GraphWalker<T> walker)
public GraphTransformer.Builder<T> setLabelsProvider(@NonNull LabelsProvider<T> provider)
public GraphTransformer.Builder<T> setGraphWalker(@NonNull GraphWalker<T> walker)
public GraphTransformer.Builder<T> setVocabCache(@NonNull VocabCache<T> vocabCache)
public GraphTransformer.Builder<T> shuffleOnReset(boolean reallyShuffle)
public GraphTransformer<T> build()