Open franfranfranfran opened 5 years ago
Thanks for the feedback! Will work to correct the issues mentioned above. Unfortunately, I am not sure I'll be able to work on it before the deadline on Monday. Am I required to resubmit to finish the code-academy intensive? Or could I just take these comments into future projects to improve my software architecture and language features?
sure thing! no need to re-submit, these are just things to keep in mind for the future.
On Sat, Jun 8, 2019 at 8:53 PM whistleholic notifications@github.com wrote:
Thanks for the feedback! Will work to correct the issues mentioned above. Unfortunately, I am not sure I'll be able to work on it before the deadline on Monday. Am I required to resubmit to finish the code-academy intensive? Or could I just take these comments into future projects to improve my software architecture and language features?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/whistleholic/pwp-capstones/issues/1?email_source=notifications&email_token=AEDVX6352VQFKOH7JX3QIHDPZRIAXA5CNFSM4HWHYYZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXIBJ4I#issuecomment-500176113, or mute the thread https://github.com/notifications/unsubscribe-auth/AEDVX6Z74UCSC5WGY3AHNW3PZRIAXANCNFSM4HWHYYZA .
Rubric Score
Criteria 1: Valid Python Code
Criteria 2: Implementation of Project Requirements
Criteria 3: Software Architecture
find_text_similarity
should take two text sample objects as input. That way, you do not have to recreate and recalculate every bit of information about the text - a text sample already has all the info. -Inside of the text sample class, you calculate and store the prepared text so why not use that when you need it instead of calculating it again forword_count_frequency
andn_gram_frequency
?Criteria 4: Uses Python Language Features
replace()
,split()
,zip()
and others. Inside of thefrequency_comparison
function, you can get rid of thekeys()
method.for items in table1
: will work how you expect it to. Also, consider saving the two values, fromtable1
andtable2
, that you compare and use here instead of repeatedly accessing them.Criteria 5: Produces Accurate Output
int
in the average sentence length function. Losing some decimal precision could make a difference in the end, so I think it'd be best to keep that bit of info as precise as possible.Overall Score: 17/20
Great work on this project. With a couple small tweaks, everything will be looking perfect. As you continue working on this project, and others, try to always keep an eye out for ways to make your code more concise and to beef up / clear up the relationships between your various classes and methods. Avoid repeating yourself wherever possible. Have fun and keep up the good work!