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

AttributeError: 'NoneType' object has no attribute 'tokenize' #26

Open
wss-xm opened this issue May 12, 2020 · 6 comments
Open

AttributeError: 'NoneType' object has no attribute 'tokenize' #26

wss-xm opened this issue May 12, 2020 · 6 comments

Comments

@wss-xm
Copy link

wss-xm commented May 12, 2020

No description provided.

@wss-xm
Copy link
Author

wss-xm commented May 12, 2020

tokens = self.tokenizer.tokenize(line.strip())

AttributeError: 'NoneType' object has no attribute 'tokenize'

@tongchangD
Copy link

How did you solve the problem

@wss-xm
Copy link
Author

wss-xm commented Aug 28, 2020 via email

@tongchangD
Copy link

Sorry, I don't solve the problem At 2020-08-04 14:05:48, "tongchangD" notifications@github.com wrote: How did you solve the problem — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

i change the tokenize,you can see in
from pytorch_pretrained_bert import BertTokenizer
tokenizer = BertTokenizer.from_pretrained('./dataset/bert-base-chinese')

@yolanda182
Copy link

Sorry, I don't solve the problem At 2020-08-04 14:05:48, "tongchangD" notifications@github.com wrote: How did you solve the problem — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

i change the tokenize,you can see in
from pytorch_pretrained_bert import BertTokenizer
tokenizer = BertTokenizer.from_pretrained('./dataset/bert-base-chinese')

Could you please tell me where you change it?

@tongchangD
Copy link

Sorry, I don't solve the problem At 2020-08-04 14:05:48, "tongchangD" notifications@github.com wrote: How did you solve the problem — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

i change the tokenize,you can see in
from pytorch_pretrained_bert import BertTokenizer
tokenizer = BertTokenizer.from_pretrained('./dataset/bert-base-chinese')

Could you please tell me where you change it?

I modified it on the company computer

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

3 participants