Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RMG-NLP #1573

Merged
merged 2 commits into from
Apr 8, 2019
Merged

RMG-NLP #1573

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions environment_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ dependencies:
- mpmath
- dde
- pyyaml
- textgenrnn
1 change: 1 addition & 0 deletions environment_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ dependencies:
- mpmath
- dde
- pyyaml
- textgenrnn
1 change: 1 addition & 0 deletions environment_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ dependencies:
- mpmath
- dde
- pyyaml
- textgenrnn
15 changes: 15 additions & 0 deletions rmgpy/rmg/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,21 @@ def finish(self):
"""
Complete the model generation.
"""
# Print neural network-generated quote
import datetime
import textwrap
try:
from textgenrnn.quotes import get_quote
except ImportError:
pass
else:
quote = '"' + get_quote() + '"'
logging.info('')
logging.info(textwrap.fill(quote, subsequent_indent=' '))
logging.info(' ---Quote-generating neural network, {}'.format(
datetime.datetime.now().strftime("%B %Y")
))

# Log end timestamp
logging.info('')
logging.info('RMG execution terminated at ' + time.asctime())
Expand Down