原创 tensorflow.python.framework.errors_impl.InvalidArgumentError: Restoring from checkpoint failed.

530 tensorflow.python.framework.errors_impl.InvalidArgumentError: Restoring from checkpoint failed. This is most l

原创 bert運行報錯: AttributeError: module 'tensorflow.contrib.tpu' has no attribute 'InputPipelineConfig'

bert的例子在GPU上執行時報錯: BERT-Classification-Tutorial → master$ sh run_classifier.sh /opt/miniconda3/lib/python3.6/importli

原创 PyText訓練時報錯: TypeError: __init__() got an unexpected keyword argument 'serialized_options'

TypeError: __init__() got an unexpected keyword argument 'serialized_options' 解決: 重裝protobuf即可: sudo pip uninstall pro

原创 GCN思考 - 之word2vec的方式直接計算文本分類

優化一: 借鑑GCN的思想,在訓練的過程中詞和詞之間是有一條邊(比如同一句子中間隔不超過5的兩個詞),那麼在word2vec中,是由詞來預測詞,比如CBOW中4個詞預測一箇中間詞,那麼在訓練中也可以用同樣的模型在CBOW預測的時候同時預測

原创 解決vi打開文件末尾帶有^M的問題

  mysql中看到的情況是這樣: 下載下來後是這樣: 參考該字符^M的說明 : https://blog.csdn.net/laoding1993/article/details/50722029 mac下手動替換清除即可: