File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 66
77## 准备工作
88
9-
109parser-stage 不涉及中端、后端部分,所以请同学们将 stage2 中完成的中后端代码合并到 parser-stage 的实验框架上。具体的操作可以参考如下步骤:
1110
11+ 在 stage2 分支下,执行:
12+
1213``` bash
13- $ git switch parser-stage
14- $ git merge stage-2
14+ $ git checkout -b parser-stage
1515```
1616
17- (本步骤所需要的额外文件请在[ 此处] ( https://cloud.tsinghua.edu.cn/d/4d339f639f4743d6a555/ ) 获取)
18-
19- 在切换到 ` parser-stage ` 分支之后,从[ 链接] ( https://cloud.tsinghua.edu.cn/d/4d339f639f4743d6a555/ ) 下载 python 目录下的文件,并使用 ` frontend/parser/ ` 中的两个文件覆盖你 stage2 代码的对应文件,然后在整体框架上完成实验。
17+ 在切换到 ` parser-stage ` 分支之后,从[ 链接] ( https://cloud.tsinghua.edu.cn/d/4d339f639f4743d6a555/ ) 下载起始代码,并使用 ` frontend/parser/ ` 中的两个文件覆盖你 stage2 代码的对应文件,然后在整体框架上完成实验。
2018
2119** 需要注意的是** ,parser-stage 的实验相对于其他 stage 是独立的。在后续进行 stage3 的实验时,应从 stage2 所完成的代码开始,而不需要用 parser-stage 的代码。未来在进行 stage3 实验时,建议进行如下操作:
2220
2321``` bash
24- $ git switch stage-3
25- # 注意不要从 parser-stage merge
26- $ git merge stage-2
22+ $ git checkout stage-2
23+ # 注意不要从 parser-stage 直接 checkout
24+ $ git checkout -b stage-3
2725```
2826
2927## 背景知识
Original file line number Diff line number Diff line change 44
55关于操作系统,助教推荐使用 Linux 环境(如 Ubuntu,Debain 或 Windows 下的 WSL 等),当然你也可以在类 Unix 系统环境(Mac OS)中进行开发。助教不推荐直接在 Window 中搭建开发环境。你需要安装或保证如下软件满足我们的要求:
66
7- 1 . python >= 3.9
7+ 1 . python >= 3.10
88
99 助教** 强烈建议** 使用类似 [ Miniconda] ( https://docs.conda.io/en/latest/miniconda.html ) 或venv的系统管理不同的Python环境。你可以方便地使用miniconda安装最新的Python版本,安装好之后使用pip安装依赖即可。
1010
11- 框架本身在 python 3.9 下进行开发,使用了 python 3.9 的新特性,请保证你所使用的 python 版本高于此版本。
11+ 框架本身在 python 3.10 下进行开发,使用了 python 3.10 的新特性,请保证你所使用的 python 版本高于此版本。
1212
1313 如果你** 没有** 使用虚拟环境,可以参考下面的指导。Linux 环境下安装 Python 3 可以尝试如下命令:
1414 ``` bash
You can’t perform that action at this time.
0 commit comments