Add File
This commit is contained in:
51
src/main/java/org/dromara/easyai/entity/SemanticsBack.java
Normal file
51
src/main/java/org/dromara/easyai/entity/SemanticsBack.java
Normal file
@@ -0,0 +1,51 @@
|
||||
package org.dromara.easyai.entity;
|
||||
|
||||
|
||||
import org.dromara.easyai.matrixTools.Matrix;
|
||||
import org.dromara.easyai.i.OutBack;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SemanticsBack implements OutBack {
|
||||
private Matrix matrix;
|
||||
private String word;
|
||||
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
|
||||
public Matrix getMatrix() {
|
||||
return matrix;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getBack(float out, int id, long eventId) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getSoftMaxBack(long eventId, List<Float> softMax) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void backWord(String word, long eventId) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getBackMatrix(Matrix matrix, int id, long eventId) {
|
||||
this.matrix = matrix;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getWordVector(int id, float w) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getBackThreeChannelMatrix(ThreeChannelMatrix picture) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user