org.deeplearning4j.util.Index Maven / Gradle / Ivy
package org.deeplearning4j.util;
import org.deeplearning4j.nn.api.Persistable;
import java.io.*;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* An index is a applyTransformToDestination of objects augmented with a list and a reverse lookup table
* for fast lookups.
* Indices are used for vocabulary in many of the natural language processing
* @author Adam Gibson
*
*/
@SuppressWarnings({"rawtypes","unchecked"})
public class Index implements Serializable,Persistable {
/**
*
*/
private static final long serialVersionUID = 1160629777026141078L;
Map objects = new ConcurrentHashMap<>();
Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy