undertheseanlp / underthesea

Underthesea - Vietnamese NLP Toolkit
http://undertheseanlp.com
GNU General Public License v3.0
1.35k stars 270 forks source link

KeyError: '__getitems__' #714

Open nguyenbinh0807 opened 10 months ago

nguyenbinh0807 commented 10 months ago

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'

tri218138 commented 8 months ago

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