Skip to content

Commit 709b6c2

Browse files
authored
Update to new version (#95)
* Update to new version * Update Makefile
1 parent e149e02 commit 709b6c2

File tree

5 files changed

+1055
-416
lines changed

5 files changed

+1055
-416
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tutorials/* linguist-vendored

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ valid_pack = mz.datasets.wiki_qa.load_data('dev', task=ranking_task)
8585
Preprocess your input data in three lines of code, keep track parameters to be passed into the model:
8686

8787
```python
88-
preprocessor = mz.models.DSSM.get_default_preprocessor()
88+
preprocessor = mz.models.ArcI.get_default_preprocessor()
8989
train_processed = preprocessor.fit_transform(train_pack)
9090
valid_processed = preprocessor.transform(valid_pack)
9191
```
@@ -106,7 +106,7 @@ validset = mz.dataloader.Dataset(
106106

107107
Define padding callback and generate data loader:
108108
```python
109-
padding_callback = mz.models.DSSM.get_default_padding_callback()
109+
padding_callback = mz.models.ArcI.get_default_padding_callback()
110110

111111
trainloader = mz.dataloader.DataLoader(
112112
dataset=trainset,
@@ -125,7 +125,7 @@ validloader = mz.dataloader.DataLoader(
125125
Initialize the model, fine-tune the hyper-parameters:
126126

127127
```python
128-
model = mz.models.DSSM()
128+
model = mz.models.ArcI()
129129
model.params['task'] = ranking_task
130130
model.params['vocab_size'] = preprocessor.context['vocab_size']
131131
model.guess_and_fill_missing_params()
@@ -260,14 +260,14 @@ If you use MatchZoo in your research, please use the following BibTex entry.
260260
<tr align="center">
261261
<td>
262262
​ <a href="https://github.com/ChrisRBXiong"><img width="40" height="40" src="https://github.com/ChrisRBXiong.png?s=40" alt="ChrisRBXiong"></a><br>
263-
​ <a href="https://github.com/ChrisRBXiong">Ribing Xiong</a> ​
264-
<p>Core Dev<br>
263+
​ <a href="https://github.com/ChrisRBXiong">Ruibin Xiong</a> ​
264+
<p>Dev<br>
265265
M.S. ICT</p>​
266266
</td>
267267
<td>
268268
​ <a href="https://github.com/dyuyang"><img width="40" height="40" src="https://github.com/dyuyang.png?s=40" alt="dyuyang"></a><br>
269269
​ <a href="https://github.com/dyuyang">Yuyang Ding</a> ​
270-
<p>Core Dev<br>
270+
<p>Dev<br>
271271
M.S. ICT</p>​
272272
</td>
273273
<td>

0 commit comments

Comments
 (0)