Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd Python module. Issue #47 #49
Conversation
This comment has been minimized.
This comment has been minimized.
Marked this draft for general comments first. Once the approach is okay, I'll mark it ready for review and we can work through some of the details. |
ruebot
requested changes
Apr 4, 2019
Couple style changes here to to start. You'll also want to run it through something that'll validate PEP-8. http://pep8online.com/checkresult You'll also need to update the
You can put a Notebook itself:
|
return(result) | ||
|
||
if __name__ == "__main__": | ||
print ("This module is intended for use with Archives Unleashed Cloud") |
This comment has been minimized.
This comment has been minimized.
from nltk.sentiment.vader import SentimentIntensityAnalyzer | ||
from nltk.corpus import stopwords | ||
|
||
class Notebook(): |
This comment has been minimized.
This comment has been minimized.
greebie
added some commits
Apr 5, 2019
This comment has been minimized.
This comment has been minimized.
I think the latest commit fixes the above review fixes. I also included mention that help(nb.function_name()) will provide instructions. Once I get word from @ianmilligan1 that the approach is okay, I will take this out of draft and work on fine tuning. |
ianmilligan1
approved these changes
Apr 7, 2019
Works on my end as a user, but I'd want to make sure @ruebot green-lights this as he knows exponentially more than I do. |
This comment has been minimized.
This comment has been minimized.
Thanks @ianmilligan1 @ruebot what are your thoughts on unit tests here? I can build them, but am not sure if they belong in the auk-notebooks folder. |
This comment has been minimized.
This comment has been minimized.
Out of scope for now. We'll cross that bridge when we publish it in it's own repo. |
ruebot
requested changes
Apr 8, 2019
Notebook review:
|
greebie
added some commits
Apr 8, 2019
This comment has been minimized.
This comment has been minimized.
Latest commit should be ready to go. Moving this out of draft. |
greebie commentedApr 4, 2019
This PR replaces the function cell in the notebook with a python module and revises the function to work with the Notebook class.
A few notes:
fun(x, min_length="2")
- now it just uses the MINIMUM_WORD_LENGTH variable, so