Package org.apache.lucene.analysis.synonym.word2vec
package org.apache.lucene.analysis.synonym.word2vec
Analysis components for Synonyms using Word2Vec model.
-
ClassDescriptionDl4jModelReader reads the file generated by the library Deeplearning4j and provide a Word2VecModel with normalized vectorsWraps a term and boostWord2VecModel is a class representing the parsed Word2Vec model containing the vectors for each word in dictionaryApplies single-token synonyms from a Word2Vec trained network to an incoming
TokenStream
.Factory forWord2VecSynonymFilter
.The Word2VecSynonymProvider generates the list of sysnonyms of a term.Supply Word2Vec Word2VecSynonymProvider cache avoiding that multiple instances of Word2VecSynonymFilterFactory will instantiate multiple instances of the same SynonymProvider.