Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现错误的代码 #82

Open
Victoria-aaaaaa opened this issue Sep 19, 2023 · 1 comment
Open

发现错误的代码 #82

Victoria-aaaaaa opened this issue Sep 19, 2023 · 1 comment

Comments

@Victoria-aaaaaa
Copy link

if 'token_type_ids' in tokenized_output: # 兼容不需要 token_type_id 的模型, e.g. Roberta-Base
if 'token_type_ids' not in tokenized_output:
tokenized_output['token_type_ids'] = [encoded_inputs['token_type_ids']]
else:
tokenized_output['token_type_ids'].append(encoded_inputs['token_type_ids'])
大佬您好,看到units.py里的这段代码应该有一些问题,希望您看一下是否需要删除if 'token_type_ids' in tokenized_output:这行代码

@wwwwwwwwwwwwwwwang
Copy link

我这儿也出错,请问您解决了这个问题了吗,怎么解决的呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants