Uses of Class
org.deeplearning4j.models.word2vec.VocabWord
-
-
Uses of VocabWord in org.deeplearning4j.bagofwords.vectorizer
Fields in org.deeplearning4j.bagofwords.vectorizer with type parameters of type VocabWord Modifier and Type Field Description protected InvertedIndex<VocabWord>BaseTextVectorizer. indexprotected VocabCache<VocabWord>BagOfWordsVectorizer.Builder. vocabCacheprotected VocabCache<VocabWord>BaseTextVectorizer. vocabCacheprotected VocabCache<VocabWord>TfidfVectorizer.Builder. vocabCacheMethods in org.deeplearning4j.bagofwords.vectorizer that return types with arguments of type VocabWord Modifier and Type Method Description InvertedIndex<VocabWord>TextVectorizer. getIndex()Inverted indexVocabCache<VocabWord>TextVectorizer. getVocabCache()The vocab sorted in descending orderMethod parameters in org.deeplearning4j.bagofwords.vectorizer with type arguments of type VocabWord Modifier and Type Method Description BagOfWordsVectorizer.BuilderBagOfWordsVectorizer.Builder. setVocab(@NonNull VocabCache<VocabWord> vocab)TfidfVectorizer.BuilderTfidfVectorizer.Builder. setVocab(@NonNull VocabCache<VocabWord> vocab) -
Uses of VocabWord in org.deeplearning4j.models.embeddings.loader
Methods in org.deeplearning4j.models.embeddings.loader that return types with arguments of type VocabWord Modifier and Type Method Description org.nd4j.common.primitives.Pair<VocabWord,float[]>WordVectorSerializer.BinaryReader. next()org.nd4j.common.primitives.Pair<VocabWord,float[]>WordVectorSerializer.CSVReader. next()org.nd4j.common.primitives.Pair<VocabWord,float[]>WordVectorSerializer.Reader. next()static VocabCache<VocabWord>WordVectorSerializer. readVocabCache(@NonNull File file)This method reads vocab cache from provided file.static VocabCache<VocabWord>WordVectorSerializer. readVocabCache(@NonNull InputStream stream)This method reads vocab cache from provided InputStream.Method parameters in org.deeplearning4j.models.embeddings.loader with type arguments of type VocabWord Modifier and Type Method Description static voidWordVectorSerializer. writeVocabCache(@NonNull VocabCache<VocabWord> vocabCache, @NonNull File file)This method saves vocab cache to provided File.static voidWordVectorSerializer. writeVocabCache(@NonNull VocabCache<VocabWord> vocabCache, @NonNull OutputStream stream)This method saves vocab cache to provided OutputStream. -
Uses of VocabWord in org.deeplearning4j.models.paragraphvectors
Fields in org.deeplearning4j.models.paragraphvectors with type parameters of type VocabWord Modifier and Type Field Description protected List<VocabWord>ParagraphVectors. labelsListMethods in org.deeplearning4j.models.paragraphvectors with parameters of type VocabWord Modifier and Type Method Description ParagraphVectors.BuilderParagraphVectors.Builder. unknownElement(VocabWord element)This method allows you to specify SequenceElement that will be used as UNK element, if UNK is usedMethod parameters in org.deeplearning4j.models.paragraphvectors with type arguments of type VocabWord Modifier and Type Method Description ParagraphVectors.BuilderParagraphVectors.Builder. elementsLearningAlgorithm(ElementsLearningAlgorithm<VocabWord> algorithm)org.nd4j.linalg.api.ndarray.INDArrayParagraphVectors. inferVector(@NonNull List<VocabWord> document)This method calculates inferred vector for given list of words, with default parameters for learning rate and iterationsorg.nd4j.linalg.api.ndarray.INDArrayParagraphVectors. inferVector(@NonNull List<VocabWord> document, double learningRate, double minLearningRate, int iterations)This method calculates inferred vector for given documentParagraphVectors.BuilderParagraphVectors.Builder. iterate(@NonNull SequenceIterator<VocabWord> iterator)This method used to feed SequenceIterator, that contains training corpus, into ParagraphVectorsParagraphVectors.BuilderParagraphVectors.Builder. lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable)This method allows to define external WeightLookupTable to be usedParagraphVectors.BuilderParagraphVectors.Builder. modelUtils(@NonNull ModelUtils<VocabWord> modelUtils)Sets ModelUtils that gonna be used as provider for utility methods: similarity(), wordsNearest(), accuracy(), etcCollection<String>ParagraphVectors. nearestLabels(@NonNull Collection<VocabWord> document, int topN)This method returns top N labels nearest to specified set of vocab wordsStringParagraphVectors. predict(List<VocabWord> document)This method predicts label of the document.Collection<String>ParagraphVectors. predictSeveral(List<VocabWord> document, int limit)Predict several labels based on the document.ParagraphVectors.BuilderParagraphVectors.Builder. sequenceLearningAlgorithm(SequenceLearningAlgorithm<VocabWord> algorithm)voidParagraphVectors. setSequenceIterator(@NonNull SequenceIterator<VocabWord> iterator)This method defines SequenceIterator instance, that will be used as training corpus source.ParagraphVectors.BuilderParagraphVectors.Builder. setVectorsListeners(@NonNull Collection<VectorsListener<VocabWord>> vectorsListeners)This method sets VectorsListeners for this SequenceVectors modeldoubleParagraphVectors. similarityToLabel(List<VocabWord> document, String label)This method returns similarity of the document to specific label, based on mean valueParagraphVectors.BuilderParagraphVectors.Builder. stopWords(@NonNull Collection<VocabWord> stopList)This method defines stop words that should be ignored during trainingParagraphVectors.BuilderParagraphVectors.Builder. vocabCache(@NonNull VocabCache<VocabWord> vocabCache)This method allows to define external VocabCache to be usedConstructor parameters in org.deeplearning4j.models.paragraphvectors with type arguments of type VocabWord Constructor Description BlindInferenceCallable(@NonNull VocabCache<VocabWord> vocabCache, @NonNull TokenizerFactory tokenizerFactory, @NonNull String document)BlindInferenceCallable(@NonNull VocabCache<VocabWord> vocabCache, @NonNull TokenizerFactory tokenizerFactory, @NonNull String document, @NonNull AtomicLong flag)InferenceCallable(@NonNull VocabCache<VocabWord> vocabCache, @NonNull TokenizerFactory tokenizerFactory, @NonNull LabelledDocument document)InferenceCallable(@NonNull VocabCache<VocabWord> vocabCache, @NonNull TokenizerFactory tokenizerFactory, @NonNull LabelledDocument document, @NonNull AtomicLong flag) -
Uses of VocabWord in org.deeplearning4j.models.sequencevectors.serialization
Methods in org.deeplearning4j.models.sequencevectors.serialization that return VocabWord Modifier and Type Method Description VocabWordVocabWordFactory. deserialize(String json)This method builds object from provided JSONMethods in org.deeplearning4j.models.sequencevectors.serialization with parameters of type VocabWord Modifier and Type Method Description StringVocabWordFactory. serialize(VocabWord element)This method serializaes object into JSON string -
Uses of VocabWord in org.deeplearning4j.models.sequencevectors.transformers.impl
Fields in org.deeplearning4j.models.sequencevectors.transformers.impl with type parameters of type VocabWord Modifier and Type Field Description protected VocabCache<VocabWord>SentenceTransformer.Builder. vocabCacheMethods in org.deeplearning4j.models.sequencevectors.transformers.impl that return types with arguments of type VocabWord Modifier and Type Method Description Iterator<Sequence<VocabWord>>SentenceTransformer. iterator()Sequence<VocabWord>SentenceTransformer. transformToSequence(String object) -
Uses of VocabWord in org.deeplearning4j.models.sequencevectors.transformers.impl.iterables
Fields in org.deeplearning4j.models.sequencevectors.transformers.impl.iterables with type parameters of type VocabWord Modifier and Type Field Description protected BlockingQueue<Future<Sequence<VocabWord>>>ParallelTransformerIterator. bufferMethods in org.deeplearning4j.models.sequencevectors.transformers.impl.iterables that return types with arguments of type VocabWord Modifier and Type Method Description Sequence<VocabWord>BasicTransformerIterator. next()Sequence<VocabWord>ParallelTransformerIterator. next() -
Uses of VocabWord in org.deeplearning4j.models.word2vec
Methods in org.deeplearning4j.models.word2vec that return VocabWord Modifier and Type Method Description static VocabWordVocabWord. none()Methods in org.deeplearning4j.models.word2vec with parameters of type VocabWord Modifier and Type Method Description Word2Vec.BuilderWord2Vec.Builder. unknownElement(VocabWord element)This method allows you to specify SequenceElement that will be used as UNK element, if UNK is usedMethod parameters in org.deeplearning4j.models.word2vec with type arguments of type VocabWord Modifier and Type Method Description Word2Vec.BuilderWord2Vec.Builder. elementsLearningAlgorithm(@NonNull ElementsLearningAlgorithm<VocabWord> algorithm)Word2Vec.BuilderWord2Vec.Builder. iterate(@NonNull SequenceIterator<VocabWord> iterator)This method used to feed SequenceIterator, that contains training corpus, into ParagraphVectorsWord2Vec.BuilderWord2Vec.Builder. lookupTable(@NonNull WeightLookupTable<VocabWord> lookupTable)This method allows to define external WeightLookupTable to be usedWord2Vec.BuilderWord2Vec.Builder. modelUtils(@NonNull ModelUtils<VocabWord> modelUtils)Sets ModelUtils that gonna be used as provider for utility methods: similarity(), wordsNearest(), accuracy(), etcvoidWord2Vec. setSequenceIterator(@NonNull SequenceIterator<VocabWord> iterator)This method defines SequenceIterator instance, that will be used as training corpus source.Word2Vec.BuilderWord2Vec.Builder. setVectorsListeners(@NonNull Collection<VectorsListener<VocabWord>> vectorsListeners)This method sets VectorsListeners for this SequenceVectors modelWord2Vec.BuilderWord2Vec.Builder. stopWords(@NonNull Collection<VocabWord> stopList)This method defines stop words that should be ignored during trainingWord2Vec.BuilderWord2Vec.Builder. vocabCache(@NonNull VocabCache<VocabWord> vocabCache)This method allows to define external VocabCache to be usedConstructor parameters in org.deeplearning4j.models.word2vec with type arguments of type VocabWord Constructor Description Builder(org.nd4j.linalg.compression.AbstractStorage<Integer> storage, VocabCache<VocabWord> vocabCache) -
Uses of VocabWord in org.deeplearning4j.models.word2vec.wordstore.inmemory
Fields in org.deeplearning4j.models.word2vec.wordstore.inmemory with type parameters of type VocabWord Modifier and Type Field Description Map<String,VocabWord>InMemoryLookupCache. tokensDeprecated.Map<String,VocabWord>InMemoryLookupCache. vocabsDeprecated.Methods in org.deeplearning4j.models.word2vec.wordstore.inmemory that return VocabWord Modifier and Type Method Description VocabWordInMemoryLookupCache. elementAtIndex(int index)Deprecated.VocabWordInMemoryLookupCache. tokenFor(long id)Deprecated.VocabWordInMemoryLookupCache. tokenFor(String word)Deprecated.VocabWordInMemoryLookupCache. wordFor(long id)Deprecated.VocabWordInMemoryLookupCache. wordFor(String word)Deprecated.Methods in org.deeplearning4j.models.word2vec.wordstore.inmemory that return types with arguments of type VocabWord Modifier and Type Method Description Map<String,VocabWord>InMemoryLookupCache. getTokens()Deprecated.Map<String,VocabWord>InMemoryLookupCache. getVocabs()Deprecated.Collection<VocabWord>InMemoryLookupCache. tokens()Deprecated.Collection<VocabWord>InMemoryLookupCache. vocabWords()Deprecated.Returns all of the vocab word nodesMethods in org.deeplearning4j.models.word2vec.wordstore.inmemory with parameters of type VocabWord Modifier and Type Method Description booleanInMemoryLookupCache. addToken(VocabWord word)Deprecated.voidInMemoryLookupCache. removeElement(VocabWord element)Deprecated.Method parameters in org.deeplearning4j.models.word2vec.wordstore.inmemory with type arguments of type VocabWord Modifier and Type Method Description voidInMemoryLookupCache. importVocabulary(VocabCache<VocabWord> vocabCache)Deprecated.voidInMemoryLookupCache. setTokens(Map<String,VocabWord> tokens)Deprecated.voidInMemoryLookupCache. setVocabs(Map<String,VocabWord> vocabs)Deprecated.
-