Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
homework2_dialog_project
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20220418012
homework2_dialog_project
Commits
779bf6a1
Commit
779bf6a1
authored
Jul 15, 2022
by
20220418012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
f85ab560
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
3 deletions
+33
-3
README.md
+33
-3
No files found.
README.md
View file @
779bf6a1
学号:20220418012
<br>
对话系统固定项目初始化
<br>
\ No newline at end of file
## 学号:20220418012<br>
对话系统固定项目初始化
<br>
## 作业提交
### 自然语言理解模块 (NLU)
在本项目中,需要学员补充上述代码文件中的4段代码块,关于每个代码块中所需要实现的功能请参考各个代码块前面的注释内容:
#### 1. `dataset.py`中的`NLUDataset.make_dataset`函数
这一函数负责读取并处理数据集。具体的数据集格式可以参见
`data`
目录下所提供的示例数据。
#### 2. `dataset.py`中的`PadBatchSeq`函数
这一函数类负责处理数据的padding行为,即如何将不同长度的句子转换成相同长度的一个batch。
#### 3. `NLU_model.py`中的`NLUModule.forward`函数
这一函数定义了NLU模型的计算流程(虽然大部分的计算是在调用self.bert时实现的)。
#### 4. `trainer.py`中的`Trainer._eval_train`函数
这一函数定义了NLU模型的训练流程。即如何迭代数据,以及在什么情况下评测模型。
### 自然语言生成模块 (NLG)
在本项目中,需要学员补充上述代码文件中的1段代码块,关于这一代码块中所需要实现的功能请参考代码块前面的注释内容:
#### 1. `model/transformer_module.py`中的`MultiheadAttention._attn`函数
这一函数负责自注意力机制的实现。
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment