Changeset d93ae5 in git
- Timestamp:
- Jul 26, 2019, 7:29:50 PM (4 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 91d4aef86185a730eb9b18bef092b9b2a784f0fa
- Parents:
- 55a5abbd0397943b2c98a4492b27ecbc050c20ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
machine_learning/common/lookuptable.py
r55a5abb rd93ae5 53 53 54 54 55 def create_table(dictionary= read_dictionary(KEYWORDS_FILE)):55 def create_table(dictionary=None): 56 56 """ 57 57 Get a list of helpfiles, and generate a word occurance vector for each. 58 58 """ 59 vectors = [] 59 if dictionary is None: 60 dictionary = read_dictionary(KEYWORDS_FILE) 61 vectors = [] 60 62 61 63 if not os.path.isfile(VECTORS_NPY) or not os.path.isfile(HELPFILE_NPY): … … 65 67 for file in file_list: 66 68 vector = count_occurances(os.path.join(HELP_FILE_PATH, "html", 67 file), 68 dictionary, 69 file), 70 dictionary, 69 71 normalise=False) 70 72 vectors.append(vector)
Note: See TracChangeset
for help on using the changeset viewer.