武藤?
WEBサイトの検索結果に出てくるサイトから文章をスクレイピング+自然言語処理(形態素解析)し、3Dグラフを作る
(anaconda使ってる人はanacondaから開く)
python -V
pip install jupyter environment_kernels
jupyter notebook
Shift+Enterでプログラム実行処理が終わると左上に番号が出る
requests_oauthlib selenium chromedriver_binary emoji MeCab flask_cors(Server.py実行時)何かのモジュールがないと出るたびにpipで入れていく
rd = pd.read_csv(C:/Users/iiela/OneDrive - 富山県立大学/idea_graph/Web3DGraph/keywords.csv', encoding="shift-jis")
selenium.common.exceptions.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言われているバージョンを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
◎4行目について
userdic = C:\Program Files\MeCab\dic\neologd\NEologd.20200820-u.dic
'あ'の次に'い'が来ているので隣接行列の'あ'行'い'列の要素に+1される
(文章中の単語'あ'に対して'い'が1回共起されたとみなす)