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

TypeError: 'type' object is not subscriptable #184

Open
KotobaSuke opened this issue Mar 8, 2023 · 0 comments
Open

TypeError: 'type' object is not subscriptable #184

KotobaSuke opened this issue Mar 8, 2023 · 0 comments

Comments

@KotobaSuke
Copy link

I am trying to use gector on Windows, but this exception has been raised when I import the model.

Traceback (most recent call last):
  File "d:\...\main.py", line 1, in <module>
    from gector.gector.gec_model import GecBERTModel
  File "C:\Users\Kotoba Trily\AppData\Local\Programs\Python\Python39\lib\gector\gector\gec_model.py", line 18, in <module>
    from gector.gector.tokenizer_indexer import PretrainedBertIndexer
  File "C:\Users\Kotoba Trily\AppData\Local\Programs\Python\Python39\lib\gector\gector\tokenizer_indexer.py", line 24, in <module>
    class TokenizerIndexer(TokenIndexer[int]):
TypeError: 'type' object is not subscriptable
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

1 participant