Skip to content

Commit

Permalink
Do not overwrite user n-gram configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aquemy committed Aug 4, 2019
1 parent fcbd870 commit 5a28726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions normalize_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def ngram_step(original_tokens, freq=None, path='./', force=False):
:rtype: dict
"""
if freq is None:
log.info('No configuration specified, uses the default one')
freq = {1: 1, 2: 1, 3: 1, 4: 1}
logging.info('No configuration specified, uses the default one')
freq = {1: 1, 2: 1, 3: 1, 4: 1}

for k in freq:
output_file = 'tokens_{}grams.txt'.format(k)
Expand Down

0 comments on commit 5a28726

Please sign in to comment.