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

this line is wrong #172

Open
mylyes opened this issue Nov 4, 2023 · 2 comments
Open

this line is wrong #172

mylyes opened this issue Nov 4, 2023 · 2 comments

Comments

@mylyes
Copy link

mylyes commented Nov 4, 2023

ref_lens = (len(reference) for reference in references)

parameter ‘reference‘ is a type of list(list(str),dict(str)), but not list(str), so i think this line should be
'ref_lens = (len(reference[0]) for reference in references)'

@celbree
Copy link
Member

celbree commented Nov 7, 2023

The type of references is list(list(str)), like said in the docstring.

@mylyes
Copy link
Author

mylyes commented Nov 7, 2023

image
image
image

I review the code and debug it ,the reference is type of list(list(str), dict(str)) indeed, I hope you can review it pls, ty

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