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

We cannot accquire the length of "characters_list" #10

Open
66qiu opened this issue Jan 26, 2024 · 3 comments
Open

We cannot accquire the length of "characters_list" #10

66qiu opened this issue Jan 26, 2024 · 3 comments

Comments

@66qiu
Copy link

66qiu commented Jan 26, 2024

characters_list = np.asarray(self._characters.items())
......
return len(self.characters_list)

TypeError: len() of unsized object

@66qiu
Copy link
Author

66qiu commented Jan 26, 2024

Python3.
np.asarray(list(self._characters.items()))

@Tankaishen
Copy link

Python3. np.asarray(list(self._characters.items()))
Still a problem:

np.asarray(list(self._characters.items()))

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (1623, 2) + inhomogeneous part.

@A-cloud-bit
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

3 participants