public class WordEmbedding extends MatrixOperation
| 构造器和说明 |
|---|
WordEmbedding() |
| 限定符和类型 | 方法和说明 |
|---|---|
MyWordFeature |
getEmbedding(String word,
long eventId,
boolean once) |
int |
getID(String word) |
String |
getWord(int id) |
List<String> |
getWordList() |
int |
getWordVectorDimension() |
void |
init(SentenceModel sentenceModel,
int wordVectorDimension) |
void |
insertModel(WordTwoVectorModel wordTwoVectorModel,
int wordVectorDimension) |
void |
setConfig(SentenceConfig config) |
void |
setStudyTimes(int studyTimes) |
WordTwoVectorModel |
start() |
add, adjointMatrix, algebraicCofactor, center, convolution, errorNub, getCrossEntropy, getEDist, getEDistByMatrix, getInverseMatrix, getKernelNub, getLinearRegression, getNorm, getNormCos, getPoolVector, getSdByMatrix, im2col, innerProduct, inverseNumber, ListToMatrix, listToRowVector, listToRowVector, mathAdd, mathDiv, mathMul, mathMulBySelf, mathSub, matrixMulPd, matrixPointDiv, matrixToList, matrixToVector, mulMatrix, push, pushVector, reverseIm2col, rowVectorToList, softMaxByMatrix, sub, transPositionpublic void setStudyTimes(int studyTimes)
public void setConfig(SentenceConfig config)
public int getWordVectorDimension()
public void init(SentenceModel sentenceModel, int wordVectorDimension) throws Exception
Exceptionpublic String getWord(int id)
public void insertModel(WordTwoVectorModel wordTwoVectorModel, int wordVectorDimension) throws Exception
Exceptionpublic MyWordFeature getEmbedding(String word, long eventId, boolean once) throws Exception
Exceptionpublic WordTwoVectorModel start() throws Exception
Exceptionpublic int getID(String word)
Copyright © 2024. All rights reserved.