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
I am trying to use gector on Windows, but this exception has been raised when I import the model.