忽略无关文档与二进制文件,提交需求说明书、数据库脚本及评分相关改动。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 2026-09-18 09:24:01 +08:00
parent 60eb127de1
commit 3091fbb7dd
7 changed files with 1432 additions and 6 deletions

53
.gitignore vendored
View File

@ -0,0 +1,53 @@
# OS
.DS_Store
**/.DS_Store
Thumbs.db
# Editor / local tooling
.cursor/
.idea/inspectionProfiles/
*.swp
AES-front/.npmrc
AES-front/pnpm-workspace.yaml
# Dependencies and build output
node_modules/
**/node_modules/
AES/target/
**/target/
dist/
*.class
# Unrelated local documents
211310132.pdf
211310509.pdf
docs/需求说明.mp4
docs/通用语音识别_需求说明.mp4 (1).txt
docs/自动评分系统/
# Binary / media files (keep already-tracked assets)
*.pdf
*.mp4
*.mp3
*.wav
*.zip
*.rar
*.7z
*.doc
*.docx
*.xls
*.xlsx
*.ppt
*.pptx
*.jar
*.war
# Runtime uploads and empty local dumps
upload/
dependency-tree.txt
AES/停用词.txt
# Logs and Python cache
*.log
__pycache__/
*.pyc

View File

@ -54,7 +54,7 @@ const queryExamScores = async () => {
params: { examId }
});
title.value = res.data.title; // 更新作业名称
score.value = res.data.score; // 更新个人得分
score.value = res.data.score || res.data.autoscore; // 更新个人得分
rank.value = res.data.rank || "-"; // 更新个人排名,如果rank为空则显示 "-"
};

View File

@ -5,7 +5,7 @@ server.port=8082
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
jdbc_url=jdbc:mysql://localhost:3306/aes?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=True
jdbc_username=root
jdbc_password=13661744518xh
jdbc_password=123456
#spring.datasource.url=jdbc:mysql://localhost:3306/aes?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=True
#spring.datasource.username=root
#spring.datasource.password=123456
@ -43,4 +43,8 @@ spring.servlet.multipart.max-request-size=50MB
spring.main.allow-bean-definition-overriding=true
spring.jackson.serialization-inclusion=non_null
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=hqb@1234
#??null?

View File

@ -16,7 +16,7 @@
https://www.springframework.org/schema/context/spring-context.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd">
<context:property-placeholder location="classpath:redis.properties"/>
<context:property-placeholder location="classpath:application.properties,classpath:redis.properties"/>
<!-- 配置数据源 -->
@ -125,7 +125,7 @@
<bean id="jedisConnectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
<property name="hostName" value="${redis.host}"/>
<property name="port" value="${redis.port}"/>
<!-- <property name="password" value="${redis.pass}"/>-->
<property name="password" value="${redis.pass}"/>
<property name="poolConfig" ref="poolConfig"/>
</bean>
</beans>

324
docs/aes.sql Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,7 @@
import openai
import time
import re
import sys
model = "Qwen/Qwen3-8B"
max_tokens = 500
@ -17,7 +18,7 @@ def getDim(content, dim):
messages = []
messages.append({
"role": "system",
"content": "你是一位评分老师,请根据提供给你的评分标准对文本进行评分,结果仅仅输出分数,不需要任何解释"
"content": "你是一位评分老师,请根据提供给你的评分标准对文本进行评分,结果仅仅输出分数,满分为10分,分数允许小数点后保留两位,并就当前维度给出评语,评语文本不要过长。"
"输出格式:"
f"{output_format}"
@ -41,7 +42,10 @@ def getDim(content, dim):
# else:
# score = response.choices[0].message.content
# print(score)
return response.choices[0].message.content
# 去除多余的换行符
content = response.choices[0].message.content.strip()
return content
if __name__ == "__main__":
content = sys.argv[1]