-
Notifications
You must be signed in to change notification settings - Fork 16
New pull request #14
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?
New pull request #14
Conversation
python text_mining.py
Outdated
|
|
||
| >>> | ||
| """ | ||
| WORD = re.compile(r'\w+') |
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.
I would caution against using all caps for variable names because some programs will interpret them differently.
python text_mining.py
Outdated
| text_7 = 'Moby Dick by Melville.txt' | ||
|
|
||
|
|
||
| Text_similarity(text_1, text_2, text_3, text_4, text_5, text_6, text_7) |
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.
You should wrap these last lines of code in a final function and call that function at the end. On a more general note, Text_similarity works fine here because you're only dealing with 7 texts, but imagine if you had 20 or 100 texts to compare. You wouldn't want to write text_i over and over again. In the future, think about ways to make this more efficient.
|
Overall, good job! Your documentation is good and I made a few stylistic comments. Your ReadMe should contain instructions on how to run your program, include any libraries you installed and the installation instructions, indicate which file to run to get your results, and have a link to your reflection. |
I implemented all the annotations
|
This is the implementation of the notes made by Emily |
This is the new pull request for the feedback