mirror of
https://gitee.com/dromara/easyAi.git
synced 2024-11-29 18:27:37 +08:00
去除冗余
This commit is contained in:
parent
54f1ef58ea
commit
5781370d7f
@ -72,7 +72,7 @@ public class CustomManager {//
|
||||
return semanticsBack.getWord();
|
||||
}
|
||||
|
||||
public CreatorModel study(List<TalkBody> talkBodies, long eventID) throws Exception {
|
||||
public CreatorModel study(List<TalkBody> 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 + "%");
|
||||
|
Loading…
Reference in New Issue
Block a user