JayYip / m3tl

BERT for Multitask Learning

Home Page:https://jayyip.github.io/m3tl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make_hidden_model()调用时参数传递错误?

nefujiangping opened this issue · comments

top.py 中有两处(link1, link2)调用函数make_hidden_model()时传递的最后一个参数似乎有问题,函数定义最后一个参数是bool类型的is_seq,而调用时传入的'pooled'字符串,会被解析为True

这里是因为是这样判断的: if self.params.hidden_gru and is_seq:. 需要传入False, None或者空字符, 列表等, 才会被解析为False.