From 5781370d7fda9c36a534d198cd65da17a07e9c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A4=A7=E9=B9=8F?= <794757862@qq.com> Date: Sun, 16 Jun 2024 11:17:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=86=97=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/wlld/rnnJumpNerveCenter/CustomManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/wlld/rnnJumpNerveCenter/CustomManager.java b/src/main/java/org/wlld/rnnJumpNerveCenter/CustomManager.java index 111fe13..26cd083 100644 --- a/src/main/java/org/wlld/rnnJumpNerveCenter/CustomManager.java +++ b/src/main/java/org/wlld/rnnJumpNerveCenter/CustomManager.java @@ -72,7 +72,7 @@ public class CustomManager {// return semanticsBack.getWord(); } - public CreatorModel study(List talkBodies, long eventID) throws Exception { + public CreatorModel study(List talkBodies) throws Exception { Random random = new Random(); CreatorModel creatorModel = new CreatorModel(); int maxTime = maxFeatureLength * answerMaxLength * times; @@ -91,8 +91,8 @@ public class CustomManager {// answer = answer.substring(0, answerMaxLength); } String word = question + answer; - MyWordFeature myWordFeature = wordEmbedding.getEmbedding(word, eventID); - semanticsStudy(myWordFeature, question, answer, eventID, random); + MyWordFeature myWordFeature = wordEmbedding.getEmbedding(word, 1); + semanticsStudy(myWordFeature, question, answer, 1, random); double point = (double) index / (double) (wordSize) * 100; String result = String.format("%.6f", point); System.out.println("训练进度:" + result + "%");