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

IndexError #88

Open
LemonQC opened this issue Mar 5, 2021 · 6 comments
Open

IndexError #88

LemonQC opened this issue Mar 5, 2021 · 6 comments

Comments

@LemonQC
Copy link

LemonQC commented Mar 5, 2021

I try to run according to md tutorial
but
image

@Wushengyao
Copy link

same issue

@zxhjames
Copy link

hey bro,do you have solutions?

@syzhy113
Copy link

syzhy113 commented Feb 7, 2022

becauese there are some problems abouot spilt('\t').

@shazifan
Copy link

same issue, any solutions?

@cheng940929
Copy link

check your corpus, it might not follow this rule in some lines: 'text \t text'

@Chasingdreams6
Copy link

It likes the parser for '\t' works bad..

if you install bert_pytorch by pip, edit /opt/conda/lib/python3.8/site-packages/bert_pytorch/dataset/dataset.py line 23.

change

self.lines = [line[:-1].split("\t")
                              for line in tqdm.tqdm(f, desc="Loading Dataset", total=corpus_lines)]

to

self.lines = [line[:-1].split("\\t")
                              for line in tqdm.tqdm(f, desc="Loading Dataset", total=corpus_lines)]

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

7 participants