在開始手把手教大家動手做前,先來認識一下 Django 的設計模式,也就是 MTV:
Model : 定義一些資料庫的東西 (…
雖然目標是做出金融領域的情感分析,但找到現在中文字典都是普通用詞的,只好先來紀錄一下
這份辭典我覺得好的地方是有基本的情緒分數,上次使用過貝式分類效果也不甚理想,因此想說那就先從辭典下手吧。
檔案是xlsx檔,有三份工作表Sheet1是總分類 Sheet2是正向詞Sheet3是負向詞
用pandas.read_exel打開
import pandas as pd…
自然語言處理的其中一個重要環節就是中文斷詞的處理,比起英文斷詞,中文斷詞在先天上就比較難處理,比如電腦要怎麼知道「全台大停電」要斷詞成「全台 / 大 /…
前面介紹了 Python 中的條件判斷,使程式能夠判斷不同條件來執行不同的敘述。
上一次介紹完基本的輸出、變數與字串以後,我們已經可以用 Python 來做最簡單的運算、以及列印出想說的話了!本篇就來介紹 Python…
These were the top 10 stories published by Bandai的機器學習筆記 in 2019. You can also dive into monthly archives for 2019 by using the calendar at the top of this page.