Skip to content

Python

[已解決] OSError: stanford-chinese-corenlp-yyyy-MM-dd-models.jar not exists. You should download and place it in the models/stanford-corenlp-4.0.0/ first.

我曾經在 Stanford CoreNLP 教學 —— by Python 紀錄了該如何透過 Python 調用 Stanford CoreNLP 這個由 Stanford 團隊開發的好用工具。不過,就在最近我重新按照我自己寫的流程操縱的時候,我在新的版本遇到了以下這樣的問題:

Read More »[已解決] OSError: stanford-chinese-corenlp-yyyy-MM-dd-models.jar not exists. You should download and place it in the models/stanford-corenlp-4.0.0/ first.

[已解決][PyTorch] AttributeError: 'tuple' object has no attribute 'size'

之前,我曾經寫過一篇文章敘述我如何印出我使用 PyTorch 搭建的模型架構,具體連結可以參考文末。但是開心了沒多久,過了一段時間後,當我又要使用這項工具來繪製另一個全新的模型架構準備報告的同時,我卻得到了以下這樣的報錯:

AttributeError: 'tuple' object has no attribute 'size'
Read More »[已解決][PyTorch] AttributeError: 'tuple' object has no attribute 'size'