Skip to content

Commit 954178e

Browse files
committed
chore: remove chinese
1 parent 14409c5 commit 954178e

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# PaperDebugger MCP
22

33
```bash
4-
# 快速启动生产环境
4+
# Quick start production environment
55
make build && make up
66

7-
# 停止环境
7+
# Stop environment
88
make down
99

10-
# 快速启动开发环境(自动构建和启动)
10+
# Quick start development environment (auto build and start)
1111
make dev
1212

13-
# 直接开始测试
13+
# Start testing directly
1414
make test
1515

16-
# 查看日志
16+
# View logs
1717
make logs
1818

19-
# 清理环境
19+
# Clean environment
2020
make clean
2121
```
2222

23-
### 镜像 需要的环境变量
23+
### Required environment variables for image
2424

2525
```bash
2626
# Production

src/app.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 发送 http 请求
1+
// Send HTTP requests
22

33
import request from 'supertest';
44
// import express from 'express';

src/app.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ app.get('/', (_: Request, res: Response) => {
3535
res.send('Hello, TypeScript Express!');
3636
});
3737

38-
// 定义所有请求体的 schema
38+
// Define schemas for all request bodies
3939
const PaperScoreSummaryRequestSchema = z.object({
4040
latexSource: z.string(),
4141
paperScoreResult: PaperScoreResultSchema,
@@ -76,23 +76,23 @@ app.post(
7676
asyncHandler(async (req: Request, res: Response) => {
7777
const { latexSource, paperScoreResult } = PaperScoreSummaryRequestSchema.parse(req.body);
7878

79-
// 获取 section candidates
79+
// Get section candidates
8080
const parsed = parseLatexDocument(latexSource);
8181
const sectionCandidates = parsed.sections.map((section) => section.title);
8282

83-
// 拼接 suggestions,生成 fullReview 的 summary(包含 importance level
83+
// Join suggestions and generate summary for fullReview (including importance level)
8484
const fullReview = joinSuggestions(paperScoreResult);
8585
const summary = await paperScoreSummaryAgent.summary(fullReview);
8686

87-
// 给 summary 里的每一个 weakness 匹配 section
87+
// Match each weakness in the summary to a section
8888
const promises = summary.weaknesses.map((o) => paperMatchWeaknessSectionsAgent.matchWeaknessSections(o.weakness, sectionCandidates));
8989
const results = await Promise.all(promises);
9090

91-
// 返回结果
91+
// Return results
9292
const summaryWithSection = results
9393
.map((result, index) => {
94-
// 因为 PaperScore 获得 section-level 的 weakness,anchorText 拿不到具体出现问题的句子
95-
// 所以 anchorText 给 section 的第一句话就够了。
94+
// Since PaperScore gets section-level weaknesses, anchorText cannot get the specific problematic sentence
95+
// So using the first sentence of the section for anchorText is sufficient
9696
const matchedSection = parsed.sections.find((section) => section.title === result.section);
9797
const content = (matchedSection?.content as string) || '';
9898

@@ -109,14 +109,14 @@ app.post(
109109
.filter((result) => result.section !== 'unknown')
110110
.filter((result) => result.anchorText !== '');
111111
const ret = {
112-
results: summaryWithSection, // 为了符合 protobuf 的定义,一定要有一个 key
112+
results: summaryWithSection, // Must have a key to comply with protobuf definition
113113
};
114114
console.log(ret);
115115
res.send(ret);
116116
}),
117117
);
118118

119-
// 解析论文,返回论文的标题,摘要,以及各个章节和内容
119+
// Parse paper and return title, abstract, and all sections with content
120120
app.post(
121121
'/parse-paper',
122122
asyncHandler(async (req: Request, res: Response) => {

src/common/latex-parser/parser.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ describe('parseLatexDocument', () => {
112112
input: String.raw`
113113
\ifthenelse{\boolean{final}}{%
114114
\newcommand{\hlchange}[1]{\textcolor{change}{#1}}
115-
\newcommand{\delete}[1]{} % 不显示删除内容
115+
\newcommand{\delete}[1]{} % Do not show deleted content
116116
}{%
117117
\newcommand{\hlchange}[1]{\textcolor{review}{#1}}
118-
\newcommand{\delete}[1]{\textcolor{red}{\st{#1}}} % 显示删除的内容
118+
\newcommand{\delete}[1]{\textcolor{red}{\st{#1}}} % Show deleted content
119119
}
120120
121121

0 commit comments

Comments
 (0)