deeplearning4j-scaleout/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/inmemory/JointStorage.java
/**
         * Adds WeightLookupTable into JointStorage
         *
         * @param lookupTable WeightLookupTable that's going to be part of Joint Lookup Table
         * @param cache VocabCache that contains vocabulary for lookupTable
         * @return
         */
Adds WeightLookupTable into JointStorage
@param lookupTable WeightLookupTable that's going to be part of Joint Lookup Table
@param cache VocabCache that contains vocabulary for lookupTable
@return
Adds WeightLookupTable into JointStorage @param lookupTable WeightLookupTable that ' s going to be part of Joint Lookup Table @param cache VocabCache that contains vocabulary for lookupTable @return
public Builder addLookupPair(@NonNull WeightLookupTable<T> lookupTable, @NonNull VocabCache<T> cache) {
            /*
                we should assume, that each word in VocabCache is tagged with pair Vocab/Table ID
            */
            if (lookupTable.getTableId() == null || lookupTable.getTableId().longValue() == 0)
                lookupTable.setTableId(RandomUtils.nextLong());
            for (T word: cache.vocabWords()) {
                word.setStorageId(lookupTable.getTableId());
            }
            mapTables.put(lookupTable.getTableId(), lookupTable);
            mapVocabs.put(lookupTable.getTableId(), cache);
            return this;
        }
public Builder addLookupPair ( @ NonNull WeightLookupTable < T > lookupTable , @ NonNull VocabCache < T > cache ) { /*
                we should assume, that each word in VocabCache is tagged with pair Vocab/Table ID
            */ if ( lookupTable . getTableId ( ) == null || lookupTable . getTableId ( ) . longValue ( ) == 0 ) lookupTable . setTableId ( RandomUtils . nextLong ( ) ) ; for ( T word : cache . vocabWords ( ) ) { word . setStorageId ( lookupTable . getTableId ( ) ) ; } mapTables . put ( lookupTable . getTableId ( ) , lookupTable ) ; mapVocabs . put ( lookupTable . getTableId ( ) , cache ) ; return this ; }
Adds WeightLookupTable into JointStorage
 @param lookupTable WeightLookupTable that's going to be part of Joint Lookup Table
 @param cache VocabCache that contains vocabulary for lookupTable
 @return
Adds WeightLookupTable into JointStorage @param lookupTable WeightLookupTable that ' s going to be part of Joint Lookup Table @param cache VocabCache that contains vocabulary for lookupTable @return
// each word should be tagged here