我抓取了所有的评论并存储在下面给出的文本文件中(很多很奇怪的字符)
我正在尝试使用以下代码加载R
中的文件:
doc <- read.table("C:/Users/schatterjee/Desktop/projects/text mining/youtube_comments.txt")
我收到以下错误:
Error in scan (file, what, nmax, sep, dec, quote, skip, nlines, na.strings,: Line 1 was not 17 elements
如何在doc变量中加载此文本?
youtube_comments.txt:
High level fshion film,like a movie even it is short but not mediocre
Most People.....
Look at people with money and think they "got lucky" or have a skill most people don't have.....
Is belief, A plan & Action .....
Learn how a fed up Wal-Mart Cashier quit his job 60 days after learning this simple secret.....
Visit:
MysteryToSuccess(dot)com
ã€?è˜‹æžœæ—¥å ±ã€‘å†?有商戶被法國å??牌LV(LOUIS VUITTON)指侵犯版權,è¦?æ±‚è³ å„Ÿå?Šç™»å ±é?“æ‰ã€‚兩間分別在旺角å?Šæ·±æ°´åŸ—的商戶指,早å‰?收到LV來信,指兩店售賣的手袋侵犯LV袋扣(S-Lock)版權。有店æ?±è?²ç¨±ï¼Œä¸?知該款è¨è¨ˆæ˜¯LV專利,希望å°?方高抬貴手。記者:å¾?雲åºã€€æ¢?瑞帆
兩間被指侵權的店舖,分別是旺角兆è?¬å•†å ´ä¸€æ¨“的時è£?店「nabu nabuã€?å?Šæ·±æ°´åŸ—æ±?州街「æº?æ³°ç´?扣ã€?。å‰?者被指出售的一款手袋侵權LV袋扣è¨è¨ˆï¼ˆS-Lock);後者亦指出售的一個類似煙盒å°?袋袋扣å?Œæ¨£ä¾µæ¬Šã€‚S-Lock是LVå…¶ä¸ä¸€æ¬¾åœ¨é¦™æ¸¯è¨»å†Šå•†æ¨™ï¼Œåœ¨å¤šæ¬¾æ‰‹è¢‹å?Šæ‰‹è…•çš®å¸¶å?‡è¦‹è©²è¨è¨ˆã€‚
Arizona muse. (: