Changeset d93ae5 in git


Ignore:
Timestamp:
Jul 26, 2019, 7:29:50 PM (5 years ago)
Author:
Murray Heymann <heymann.murray@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
91d4aef86185a730eb9b18bef092b9b2a784f0fa
Parents:
55a5abbd0397943b2c98a4492b27ecbc050c20ef
Message:
Fix pylint errors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • machine_learning/common/lookuptable.py

    r55a5abb rd93ae5  
    5353
    5454
    55 def create_table(dictionary=read_dictionary(KEYWORDS_FILE)):
     55def create_table(dictionary=None):
    5656    """
    5757    Get a list of helpfiles, and generate a word occurance vector for each.
    5858    """
    59     vectors = []
     59    if dictionary is None:
     60        dictionary = read_dictionary(KEYWORDS_FILE)
     61    vectors = []
    6062
    6163    if not os.path.isfile(VECTORS_NPY) or not os.path.isfile(HELPFILE_NPY):
     
    6567        for file in file_list:
    6668            vector = count_occurances(os.path.join(HELP_FILE_PATH, "html",
    67                                                    file), 
    68                                       dictionary, 
     69                                                   file),
     70                                      dictionary,
    6971                                      normalise=False)
    7072            vectors.append(vector)
Note: See TracChangeset for help on using the changeset viewer.