shangjingbo1226 / AutoNER

Learning Named Entity Tagger from Domain-Specific Dictionary
https://shangjingbo1226.github.io/AutoNER/
Apache License 2.0
483 stars 91 forks source link

_pickle.UnpicklingError: pickle data was truncated #6

Closed xiongdemao closed 6 years ago

xiongdemao commented 6 years ago

(autoner) A@7420:~/AutoNER-master$ ./autoner_train.sh === Compilation === mkdir -p bin g++ -std=c++11 -Wall -O3 -msse2 -fopenmp -I.. -pthread -lm -Wno-unused-result -Wno-sign-compare -Wno-unused-variable -Wno-parentheses -Wno-format -o bin/generate src/generate.cpp === Generating Distant Supervision === loading KB... core dict inserted full dict marked cleaning stopwords... initialized! # of trie nodes = 23819 === Encoding Dataset === Traceback (most recent call last): File "preprocess_partial_ner/encode_folder.py", line 262, in w_emb = pickle.load(f) _pickle.UnpicklingError: pickle data was truncated

shangjingbo1226 commented 6 years ago

Did you see the embedding file (.pk) successfully downloaded?

xiongdemao commented 6 years ago

thanks for your answer ,may i ask for about could i use part of embedding file(.txt) or (.pk) because my computer can`t skill so mach data.

xiongdemao commented 6 years ago

and ,anther question is pytorch must or not use GPU? thank you again for your answer!

shangjingbo1226 commented 6 years ago
xiongdemao commented 6 years ago

thanks for your answer

junglefish8086 commented 5 years ago

Did you see the embedding file (.pk) successfully downloaded?

I have encountered the same problem. How can I check the embedding file (.pk) successfully downloaded? I searched this problem probably because the file format does not satisfy pickle.