Skip to content

Conversation

@msausville
Copy link

No description provided.

Copy link

@matthewruehle matthewruehle left a 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):

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():

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))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: commented test code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants