From cb74579f902bd84058712c6f7893e87ea3ff3ba2 Mon Sep 17 00:00:00 2001 From: inter Date: Thu, 4 Sep 2025 14:09:29 +0800 Subject: [PATCH] Add File --- .../languageCreator/CreatorWord.java | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/main/java/org/dromara/easyai/naturalLanguage/languageCreator/CreatorWord.java diff --git a/src/main/java/org/dromara/easyai/naturalLanguage/languageCreator/CreatorWord.java b/src/main/java/org/dromara/easyai/naturalLanguage/languageCreator/CreatorWord.java new file mode 100644 index 0000000..bf49d99 --- /dev/null +++ b/src/main/java/org/dromara/easyai/naturalLanguage/languageCreator/CreatorWord.java @@ -0,0 +1,60 @@ +package org.dromara.easyai.naturalLanguage.languageCreator; + +import org.dromara.easyai.entity.ThreeChannelMatrix; +import org.dromara.easyai.matrixTools.Matrix; +import org.dromara.easyai.i.OutBack; + +import java.util.List; + + +public class CreatorWord implements OutBack { + private int id; + private float maxOut = -2; + + public int getId() { + return id; + } + + public float getMaxOut() { + return maxOut; + } + + public void clear() { + maxOut = -2; + } + + @Override + public void getBack(float out, int id, long eventId) { + if (out > maxOut) { + maxOut = out; + this.id = id; + } + } + + @Override + public void getSoftMaxBack(long eventId, List softMax) { + + } + + + @Override + public void backWord(String word, long eventId) { + + } + + + @Override + public void getBackMatrix(Matrix matrix, int id, long eventId) { + + } + + @Override + public void getWordVector(int id, float w) { + + } + + @Override + public void getBackThreeChannelMatrix(ThreeChannelMatrix picture) { + + } +}