From afdf70cf49f80a0d1c349d98a6f35173ea53f099 Mon Sep 17 00:00:00 2001 From: inter Date: Thu, 4 Sep 2025 14:09:12 +0800 Subject: [PATCH] Add File --- .../dromara/easyai/entity/SemanticsBack.java | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/main/java/org/dromara/easyai/entity/SemanticsBack.java diff --git a/src/main/java/org/dromara/easyai/entity/SemanticsBack.java b/src/main/java/org/dromara/easyai/entity/SemanticsBack.java new file mode 100644 index 0000000..cbcebef --- /dev/null +++ b/src/main/java/org/dromara/easyai/entity/SemanticsBack.java @@ -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 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) { + + } +}