Commit 3bd7f57b authored by Leigh Smith's avatar Leigh Smith

Changed to PEP8 style

parent ecf31cac
...@@ -88,7 +88,7 @@ def crossValidateKNN(features, labels): ...@@ -88,7 +88,7 @@ def crossValidateKNN(features, labels):
print('cross validation accuracy: %f' % (1.0 - errors.mean())) print('cross validation accuracy: %f' % (1.0 - errors.mean()))
def processCorpus(corpusURL): def process_corpus(corpusURL):
"""Read a list of files to process from the text file at corpusURL. Return a list of URLs""" """Read a list of files to process from the text file at corpusURL. Return a list of URLs"""
# Open and read each line # Open and read each line
urlListTextData = urllib2.urlopen(corpusURL) # it's a file like object and works just like a file urlListTextData = urllib2.urlopen(corpusURL) # it's a file like object and works just like a file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment