Skip to content

Commit

Permalink
Fixing training syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
AG committed Mar 2, 2024
1 parent 1466401 commit 1f787a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def main():
output_file = 'dictionary.js'

# Prune the dictionaries first
prune_unpopular(scores_3_words_file_path, os.path.join(dictionaries_path, "3_words"), target_dictionary_count=TARGET_DICTIONARY_COUNT * THREE_WORD_STAKE_PERCENT)
prune_unpopular(scores_2_words_file_path, os.path.join(dictionaries_path, "2_words"), target_dictionary_count=TARGET_DICTIONARY_COUNT * TWO_WORD_STAKE_PERCENT)
prune_unpopular(scores_1_word_file_path, os.path.join(dictionaries_path, "1_word"), target_dictionary_count=TARGET_DICTIONARY_COUNT * ONE_WORD_STAKE_PERCENT)
prune_unpopular(scores_3_words_file_path, os.path.join(dictionaries_path, "3_words"), target_dictionary_count=int(TARGET_DICTIONARY_COUNT * THREE_WORD_STAKE_PERCENT))
prune_unpopular(scores_2_words_file_path, os.path.join(dictionaries_path, "2_words"), target_dictionary_count=int(TARGET_DICTIONARY_COUNT * TWO_WORD_STAKE_PERCENT))
prune_unpopular(scores_1_word_file_path, os.path.join(dictionaries_path, "1_word"), target_dictionary_count=int(TARGET_DICTIONARY_COUNT * ONE_WORD_STAKE_PERCENT))

# Initialize the dictionary object
dictionary = {}
Expand Down

0 comments on commit 1f787a4

Please sign in to comment.