generateGraph功能优化

master
xueqingkun 1 month ago
parent 9a45ed30cc
commit 4c7e6c7d3a

@ -0,0 +1,8 @@
# 设置基础镜像
FROM openjdk:17-jdk-alpine
# 暴漏服务端口
EXPOSE 8080
# 设置启动命令
ENTRYPOINT ["java","-Xms256m","-Xmx1g", "-Xss2m","-Dfile.encoding=utf-8","-Duser.timezone=Asia/Shanghai","-jar","/data/pdf-qa/web/pdf-qa-server-0.0.1-SNAPSHOT.jar"]

@ -91,6 +91,22 @@
<version>5.15.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>

@ -72,6 +72,7 @@ public class KnowledgeGraphServiceImpl implements KnowledgeGraphService {
log.info("命名实体识别完成,耗时:{}秒", timer.intervalSecond("doEre"));
generateGraph(eredtoList);
log.info("生成知识图谱完成,耗时:{}秒", timer.intervalSecond());
}

Loading…
Cancel
Save