underthesea icon indicating copy to clipboard operation
underthesea copied to clipboard

KeyError: '__getitems__'

Open nguyenbinh0807 opened this issue 1 year ago • 1 comments

please help me, error is: Downloading: "https://github.com/undertheseanlp/underthesea/releases/download/resources/vi-dp-v1a1.zip" to /root/.cache/torch/hub/checkpoints/vi-dp-v1a1.zip 100%|██████████| 45.4M/45.4M [00:00<00:00, 109MB/s] FieldEmbeddings(n_vocab=1000)

KeyError Traceback (most recent call last) in <cell line: 1>() ----> 1 dependency_parse("doanh thu thuần của nvl so với hpg năm 2023")

10 frames /usr/local/lib/python3.10/dist-packages/underthesea/transforms/conll.py in getattr(self, name) 109 return self.dict[name] 110 else: --> 111 return self.values[self.maps[name]] 112 113 def setattr(self, name, value):

KeyError: 'getitems'

nguyenbinh0807 avatar Sep 06 '23 02:09 nguyenbinh0807

Until an issue is fixed, you can install the previous version (stable) !pip install underthesea[deep]==6.7.0

tri218138 avatar Nov 01 '23 09:11 tri218138