我知道類似的問題已經被問到,我已經看過所有這些問題,幫幫我。我正在使用OSX 10.11 El Capitan,python3.6。,虛擬環境,也沒有嘗試過。我正在使用jupyter筆記本和spyder3。 我是新來的蟒蛇,但要知道基本的ML和以下後,以瞭解如何解決Kaggle挑戰:Link to Blog,Link to Data Set 。我是停留在代碼的前幾行 ` import pandas
我在Kaggle找到了下面的代碼。 import re
from nltk.corpus import stopwords # Import the stop word list
def description_to_words(review_text):
# 2. Remove non-letters
letters_only = re.sub("[^a-zA-