de.datexis.sector.encoder.ParVecSentenceEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of texoo-sector Show documentation
Show all versions of texoo-sector Show documentation
TeXoo module for Topic Segmentation and Classification (SECTOR)
package de.datexis.sector.encoder;
import de.datexis.parvec.encoder.ParVecEncoder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Encodes a sentence using ParVec inference.
* @author Sebastian Arnold
*/
public class ParVecSentenceEncoder extends ParVecEncoder {
protected final static Logger log = LoggerFactory.getLogger(ParVecSentenceEncoder.class);
@Override
public long getEmbeddingVectorSize() {
// return size of the embedding!
return layerSize;
}
}