Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error about not found postag/featureIndex.txt_0 #6

Open
hanyaqian opened this issue Aug 12, 2019 · 1 comment
Open

error about not found postag/featureIndex.txt_0 #6

hanyaqian opened this issue Aug 12, 2019 · 1 comment

Comments

@hanyaqian
Copy link

FileNotFoundError when use g2p , can you give me some suggesion? thanks!

>>> g2p = G2pC()
WARNING: features.pkl does not exist, try loading features.json
WARNING: features.json does not exist, try loading using old format
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/ssd1/exec/hanyaqian/script/venv3/lib64/python3.6/site-packages/g2pc/g2pc.py", line 171, in __init__
    self.seg = pkuseg.pkuseg(postag=True)
  File "/ssd1/exec/hanyaqian/script/venv3/lib64/python3.6/site-packages/pkuseg/__init__.py", line 257, in __init__
    self.tagger = Postag(postag_dir)
  File "/ssd1/exec/hanyaqian/script/venv3/lib64/python3.6/site-packages/pkuseg/postag/__init__.py", line 16, in __init__
    self.feature_extractor = FeatureExtractor.load(modelDir)
  File "pkuseg/postag/feature_extractor.pyx", line 318, in pkuseg.postag.feature_extractor.FeatureExtractor.load
FileNotFoundError: [Errno 2] No such file or directory: '/home/hanyaqian/.pkuseg/postag/featureIndex.txt_0'
>>> 
@Maxxiey
Copy link

Maxxiey commented Sep 17, 2020

same problem, any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants