このサイトはスクレイピング・自然言語処理・3Dグラフをもとに作成しています。
フォルダ内のファイルについて
python -V
pip install jupyter environment_kernels
jupyter notebook
Anacondaプロンプトを開き、以下の手順でjupyterをインストール
conda create -n graph python=3.7.13 -y (graphは仮想環境名)
conda activate graph
pip install jupyter environment_kernels
pip install pandas
#ref(): File not found: "3DGraph-pre.png" at page "1/12 中市"
#ref(): File not found: "3DGraph-pre2.png" at page "1/12 中市"
!pip install ~
#ref(): File not found: "3DGraph0.png" at page "1/12 中市"
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 88 Current browser version is 92.0.4515.131 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe (88と92で異なっている)Cheomeブラウザと同じバージョンをpip install(ver.88→ver.92へ)
!pip install chromedriver-binary==92.0.4515.131おそらく赤字でエラーが出る
ERROR: Could not find a version that satisfies the requirement chromedriver-binary==92.0.4515.131 (from versions: ~~~, 91.0.4472.101.0, 92.0.4515.43.0, 92.0.4515.107.0, 93.0.4577.15.0) ERROR: No matching distribution found for chromedriver-binary==92.0.4515.131バージョンが列記されると思うので、一番近いバージョンをインストール
!pip install chromedriver-binary==92.0.4515.107.0 (2023/01現在だとver108.X.X.Xあたり?)
!pip install chromedriver-binary==92.0.4515.107.0
#ref(): File not found: "3DGraph1.png" at page "1/12 中市"
#ref(): File not found: "3DGraph2.png" at page "1/12 中市"
https://github.com/ikegami-yukino/mecab/releases/tag/v0.996
#ref(): File not found: "3DGraph3-1.png" at page "1/12 中市"
C:\Program Files\MeCab\bin\
#ref(): File not found: "3DGraph3.png" at page "1/12 中市"
import sys
import MeCab
m = MeCab.Tagger ("-Ochasen")
print(m.parse ("東京特許許可局"))
#ref(): File not found: "3DGraph3-2.png" at page "1/12 中市"
#8でやっていること:文章から不必要な文字列を除去し,Mecabの辞書に基づいて単語単位に分割する
#ref(): File not found: "dic1.png" at page "1/12 中市"
cd "c:\Program Files\MeCab\dic\ipadic-UTF8" mecab-dict-index -f utf-8 -t utf-8
#ref(): File not found: "dic2.png" at page "1/12 中市"
cd "c:\Program Files\MeCab\dic\mecab-ipadic-neologd\seed" mecab-dict-index -d "c:\Program Files\MeCab\dic\ipadic-UTF8" -u NEologd.20200820-u.dic -f utf-8 -t utf-8 mecab-user-dict-seed.20200820.csv
#ref(): File not found: "dic3.png" at page "1/12 中市"
; userdic = /home/foo/bar/user.dic userdic = C:\Program Files\MeCab\dic\neologd\NEologd.20200820-u.dic
#ref(): File not found: "3DGraph4-1.png" at page "1/12 中市"
#ref(): File not found: "ad_matrix.png" at page "1/12 中市"
#ref(): File not found: "3DGraph5.png" at page "1/12 中市"