Skip to content

Commit

Permalink
better log
Browse files Browse the repository at this point in the history
  • Loading branch information
dianzrong committed Jun 21, 2023
2 parents 4b9c68a + 8686418 commit 655a968
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openadapt/strategies/mixins/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ def get_summary(
try:
Tokenizer("english")
break
except:
logger.info("Doesn't currently have punkt")
except Exception as e:
logger.info(e)
logger.info("Downloading punkt now")
nltk.download("punkt")

parser = PlaintextParser.from_string(text, Tokenizer("english"))
Expand Down

0 comments on commit 655a968

Please sign in to comment.