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

corpus 를 save로 저장 후 load로 다시 읽었지만 값이 제대로 나오지 않아서요 #209

Open
nowtoday opened this issue Aug 23, 2023 · 0 comments

Comments

@nowtoday
Copy link

nowtoday commented Aug 23, 2023

tomotopy-0.12.5 사용 중이구요...

process_corpus = tp.utils.Corpus()
load_corpus = tp.utils.Corpus()

.....

process_corpus .save('save.corpus')
load_corpus.load('save.corpus')
...

process_corpus 값은 extract_ngrams 으로 값이 나오지만 load_corpus 에서는 빈값만 나와서요...

혹시나 해서 pickle로 해도 마찬가지여서...

pickle.dump(data, fw) # protocol=pickle.HIGHEST_PROTOCOL 로도 해봄

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

1 participant