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

assert problem #43

Open
jcjview opened this issue Jul 25, 2019 · 1 comment
Open

assert problem #43

jcjview opened this issue Jul 25, 2019 · 1 comment

Comments

@jcjview
Copy link

jcjview commented Jul 25, 2019

sqlova/utils/utils_wikisql.py line
def get_bert_output
len 728-735

`

        while len(input_ids1) < max_seq_length:
                    input_ids1.append(0)
                    input_mask1.append(0)
                    segment_ids1.append(0)

        assert len(input_ids1) == max_seq_length
        assert len(input_mask1) == max_seq_length
        assert len(segment_ids1) == max_seq_length

`
There will raise a error if --max_seq_leng is smaller than seq length.

@jasonLvChina
Copy link

you could cut the length to max_seq_leng, maybe can solve it?

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