-
Notifications
You must be signed in to change notification settings - Fork 58
Release #52
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
base: master
Are you sure you want to change the base?
Release #52
Conversation
matthewruehle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All in all, a reasonable revision off of the text mining project. Your original was definitely not the cleanest, but this has removed unnecessary code/repetition and packaged everything up into some functions. The functions themselves have less-than-formal names, and not a ton of documentation; unfortunately, cleanliness/coding practices were one of the focuses of the mini project. Still, solid revisions; you chose a good direction for MP5!
| return markovdict | ||
|
|
||
|
|
||
| def smushit(markovdict, megalist): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a bit more by way of documentation. You've cleaned up the script/jumbles into clean functions, but it's not immediately clear what the functions themselves do.
| return " ".join(finallist) | ||
|
|
||
|
|
||
| def main_important_part(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, not the ideal name, but it gets the point across!
| """ | ||
| megalist = [] | ||
| markovdict = {} | ||
| # print("in global scope", id(markovdict)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: commented test code.
No description provided.