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

'marisa_trie.Trie' object does not support item assignment #108

Open
NlMay opened this issue Aug 31, 2024 · 3 comments
Open

'marisa_trie.Trie' object does not support item assignment #108

NlMay opened this issue Aug 31, 2024 · 3 comments

Comments

@NlMay
Copy link

NlMay commented Aug 31, 2024

How to deal with this problem?

@BoboTiG
Copy link
Contributor

BoboTiG commented Aug 31, 2024

Please share a minimal reproduction code and the full error.

@NlMay
Copy link
Author

NlMay commented Sep 1, 2024

The following example:
if k not in self.trie_ or self.trie_[k][0] < F: self.trie_[self.key_(line[0])] = (F, line[2]) self.trie_[self.rkey_(line[0])] = 1
I wrote this, but he got an error

@NlMay
Copy link
Author

NlMay commented Sep 1, 2024

I want to use marisa_trie instead of datrie, but I found that some methods do not support 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