deeplearning4j-scaleout/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/sequencevectors/SequenceVectors.java
/**
     * Builds vocabulary from provided SequenceIterator instance
     */
Builds vocabulary from provided SequenceIterator instance
Builds vocabulary from provided SequenceIterator instance
public void buildVocab() {
        log.info("Starting vocabulary building...");
        VocabConstructor<T> constructor = new VocabConstructor.Builder<T>()
                .addSource(iterator, minWordFrequency)
                .setTargetVocabCache(vocab)
                .fetchLabels(trainSequenceVectors)
                .build();
        constructor.buildJointVocabulary(false, true);
    }
public void buildVocab ( ) { log . info ( "Starting vocabulary building..." ) ; VocabConstructor < T > constructor = new VocabConstructor . Builder < T > ( ) . addSource ( iterator , minWordFrequency ) . setTargetVocabCache ( vocab ) . fetchLabels ( trainSequenceVectors ) . build ( ) ; constructor . buildJointVocabulary ( false , true ) ; }
Builds vocabulary from provided SequenceIterator instance
Builds vocabulary from provided SequenceIterator instance