You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
您好!感谢分享!我在运行的时候出现了以下问题(已经load model了):
Start extracting...
Building prefix dict from the default dictionary ...
Loading model from cache /var/folders/_t/9brcc8tj3jbd5v9455w8bzh80000gp/T/jieba.cache
Loading model cost 0.989 seconds.
Prefix dict has been built successfully.
Traceback (most recent call last):
File "extract_demo.py", line 19, in
nlp = NLP()
File "../core/nlp.py", line 49, in init
postag_flag = self.postagger.load(os.path.join(self.default_model_dir, 'pos.model'))
AttributeError: 'pyltp.Postagger' object has no attribute 'load'
请问您有什么建议吗?谢谢
The text was updated successfully, but these errors were encountered:
您好!感谢分享!我在运行的时候出现了以下问题(已经load model了):
Start extracting...
Building prefix dict from the default dictionary ...
Loading model from cache /var/folders/_t/9brcc8tj3jbd5v9455w8bzh80000gp/T/jieba.cache
Loading model cost 0.989 seconds.
Prefix dict has been built successfully.
Traceback (most recent call last):
File "extract_demo.py", line 19, in
nlp = NLP()
File "../core/nlp.py", line 49, in init
postag_flag = self.postagger.load(os.path.join(self.default_model_dir, 'pos.model'))
AttributeError: 'pyltp.Postagger' object has no attribute 'load'
请问您有什么建议吗?谢谢
The text was updated successfully, but these errors were encountered: