rlads2021 / hw9

HW 9: Chinese Text Processing
https://rlads2021.github.io/hw9
0 stars 0 forks source link

讀檔問題 #1

Open meowmeow62145 opened 3 years ago

meowmeow62145 commented 3 years ago

助教好,想請問要輸入的檔案是“samesex_marriage/txt/”這個檔案嗎? 有試過readLine可是好像讀不進去,可以請問要用什麼函數嗎?QQ

liao961120 commented 3 years ago

samesex_marriage/txt/ 是資料夾喔,裡面有很多檔案 (e.g., anti_1.txt, anti_2.txt, ..., pro_150.txt) 要用 readLines("samesex_marriage/txt/{檔名}") 才讀的進去喔,例如 readLines("samesex_marriage/txt/anti_1.txt")