Skip to content

Commit

Permalink
Fixes to noun chunks processing
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Sep 7, 2017
1 parent 79b0edd commit fb83774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eea.corpus/eea/corpus/processing/noun_chunks.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ def process(content, env, **settings):
mode = settings.get('mode', 'tokenize')

drop_deter = settings['drop_determiners']
min_freq = settings['min_freq']
min_freq = int(settings['min_freq'])

for doc in content:
try:
ncs = [x.text for x in noun_chunks(doc,
drop_determiners=drop_det,
drop_determiners=drop_deter,
min_freq=min_freq)]
except Exception:
logger.exception("Error extracting noun chunks %r", doc)
Expand Down

0 comments on commit fb83774

Please sign in to comment.