Skip to content

TypeError: 'type' object is not subscriptable #184

@KotobaSuke

Description

@KotobaSuke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions