Created
November 28, 2016 15:31
-
-
Save RiflerRick/6bc1873f6422f1adface795e20737f5e to your computer and use it in GitHub Desktop.
error, metadata only contains stopwords
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`Traceback (most recent call last): | |
File "main.py", line 366, in currentMediaChangedHandler | |
recommendModel = self.manageCache.queryCache(self.currentPlayingMediaUrl, self.manageLocalStorage) | |
File "C:\Users\riflerRick\Desktop\NiitUniversityCSE_course\3rdyr\semester5\softwareEngineering\project\gitRepos\Recommend\recommend\classifier\ManageCacheModule.py", line 177, in queryCache | |
recommendedSongsPathList = getRecom.predict(SPath, relevantSongDict) | |
File "C:\Users\riflerRick\Desktop\NiitUniversityCSE_course\3rdyr\semester5\softwareEngineering\project\gitRepos\Recommend\recommend\classifier\GetRecommendationModule.py", line 143, in predict | |
clusters.find_clusters(4) | |
File "C:\Users\riflerRick\Desktop\NiitUniversityCSE_course\3rdyr\semester5\softwareEngineering\project\gitRepos\Recommend\recommend\classifier\cluster\algorithms\KMeans.py", line 54, in find_clusters | |
tfidf_matrix = tfidf_vectorizer.fit_transform(self.snippets) #fit the vectorizer to synopses | |
File "C:\Users\riflerRick\Anaconda3\lib\site-packages\sklearn\feature_extraction\text.py", line 1305, in fit_transform | |
X = super(TfidfVectorizer, self).fit_transform(raw_documents) | |
File "C:\Users\riflerRick\Anaconda3\lib\site-packages\sklearn\feature_extraction\text.py", line 817, in fit_transform | |
self.fixed_vocabulary_) | |
File "C:\Users\riflerRick\Anaconda3\lib\site-packages\sklearn\feature_extraction\text.py", line 764, in _count_vocab | |
raise ValueError("empty vocabulary; perhaps the documents only" | |
ValueError: empty vocabulary; perhaps the documents only contain stop words` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment