pkuseg-python icon indicating copy to clipboard operation
pkuseg-python copied to clipboard

Can't not find model files

Open lingvisa opened this issue 6 years ago • 0 comments

Python 3.7.4 (default, Aug 13 2019, 20:35:49) Type 'copyright', 'credits' or 'license' for more information IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import pkuseg

In [2]: seg = pkuseg.pkuseg()
WARNING: features.pkl does not exist, try loading features.json WARNING: features.json does not exist, try loading using old format

FileNotFoundError Traceback (most recent call last) in ----> 1 seg = pkuseg.pkuseg()

/pkuseg/init.py in init(self, model_name, user_dict, postag) 239 self.postprocesser = Postprocesser(None, other_names) 240 --> 241 self.feature_extractor = FeatureExtractor.load() 242 self.model = Model.load() 243

/pkuseg/feature_extractor.pyx in pkuseg.feature_extractor.FeatureExtractor.load()

FileNotFoundError: [Errno 2] No such file or directory: '/pkuseg/models/default/unigram_word.txt'

In [3]: quit

lingvisa avatar Feb 05 '20 08:02 lingvisa