Conversation
Submitting a text mining project and PDF
Oops... I forgot the doctest line on the bottom. I added that in, so hopefully everything works now.
|
Review status: 0 of 3 files reviewed at latest revision, 10 unresolved discussions. AnalysisofCloningonWikipedia.py, line 1 [r1] (raw file): This was scoped as a pretty small project, it might have been good to do something like search through other pages, and find an average amount of positive and negative words, so you could classify these according to how close they are to neutral. You could also have normalized the output so that it wouldn't be effected by the length of the article. AnalysisofCloningonWikipedia.py, line 12 [r1] (raw file): AnalysisofCloningonWikipedia.py, line 26 [r1] (raw file): AnalysisofCloningonWikipedia.py, line 42 [r1] (raw file): AnalysisofCloningonWikipedia.py, line 46 [r1] (raw file): for word in b:
if word in negative_search_words:
...Also, a comment here would have been helpful to know what the for loops are doing AnalysisofCloningonWikipedia.py, line 49 [r1] (raw file): AnalysisofCloningonWikipedia.py, line 57 [r1] (raw file): import string
word = '.banana.'
word.strip(string.punctuation)outputs 'banana' AnalysisofCloningonWikipedia.py, line 65 [r1] (raw file): DownloadWikiArticlesGenetics.py, line 1 [r1] (raw file): Here, you are just storing strings, so you don't need pickle (and you don't actually use it anywhere). DownloadWikiArticlesGenetics.py, line 13 [r1] (raw file): f = open( '...' , 'w')
f.write( ... )where "open" opens the specified file, and stores the file in the variable f. Comments from the review on Reviewable.io |
Submitting a text mining project and PDF