diff --git a/cp/project3/unitgrade_data/Week06MultiTap.pkl b/cp/project3/unitgrade_data/Week06MultiTap.pkl index a1f2652d8ee0a9975986b1b10392b19c9a040a50..9261afe38325a958d1c437fb7b9a035c36553500 100644 Binary files a/cp/project3/unitgrade_data/Week06MultiTap.pkl and b/cp/project3/unitgrade_data/Week06MultiTap.pkl differ diff --git a/cp/project3/unitgrade_data/Week06SpellCheck.pkl b/cp/project3/unitgrade_data/Week06SpellCheck.pkl index 18d671637f35ec674e54624604e5e7df388308a5..f885829bba48187e95b52bb755a78e84371dc368 100644 Binary files a/cp/project3/unitgrade_data/Week06SpellCheck.pkl and b/cp/project3/unitgrade_data/Week06SpellCheck.pkl differ diff --git a/cp/tests/tests_week06.py b/cp/tests/tests_week06.py index 9acb861c0916aeeb96973c86f734c91acda32813..b37210ee81d8cf9f8e953bf3fa0ec9b068985ecb 100644 --- a/cp/tests/tests_week06.py +++ b/cp/tests/tests_week06.py @@ -21,9 +21,9 @@ class Week06LetterHistogram(UTestCase): class Week06WordHistogram(UTestCase): def test_WordHistogram(self): from cp.ex06.word_histogram import word_histogram - self.assertEqual(word_histogram(["Write the function word_histogram."," which takes as argument a list containing lines of a text."]),{'write': 1, 'the': 1, 'function': 1, 'wordhistogram': 1, 'which': 1, 'takes': 1, 'as': 1, 'argument': 1, 'a': 2, 'list': 1, 'containing': 1, 'lines': 1, 'of': 1, 'text': 1}) + self.assertEqual(word_histogram(["Write the function word histogram."," which takes as argument a list containing lines of a text."]),{'write': 1, 'the': 1, 'function': 1, 'word': 1, 'histogram': 1, 'which': 1, 'takes': 1, 'as': 1, 'argument': 1, 'a': 2, 'list': 1, 'containing': 1, 'lines': 1, 'of': 1, 'text': 1}) self.assertEqual(word_histogram(["The function should make a histogram of words that occur in the text.","Punctuation, spaces, and capitalization should be ignored.",]),{'the': 2, 'function': 1, 'should': 2, 'make': 1, 'a': 1, 'histogram': 1, 'of': 1, 'words': 1, 'that': 1, 'occur': 1, 'in': 1, 'text': 1, 'punctuation': 1, 'spaces': 1, 'and': 1, 'capitalization': 1, 'be': 1, 'ignored': 1}) - self.assertEqual(word_histogram(["The function should return a dictionary, e.g. {'write': 2, 'the': 12, 'function': 7, …}",]),{'the': 2, 'function': 2, 'should': 1, 'return': 1, 'a': 1, 'dictionary': 1, 'eg': 1, 'write': 1}) + self.assertEqual(word_histogram(["The function should return a dictionary. The function.",]),{'the': 2, 'function': 2, 'should': 1, 'return': 1, 'a': 1, 'dictionary': 1}) class Week06ExtractKeywords(UTestCase): def test_ExtractKeywords(self): diff --git a/cp/tests/unitgrade_data/Week06ExtractKeywords.pkl b/cp/tests/unitgrade_data/Week06ExtractKeywords.pkl index 7ea750c04c207940e19dfa92b8e45ed6d956ced9..558fddbee940f02ae2977a51805fe2ffc9dd03f9 100644 Binary files a/cp/tests/unitgrade_data/Week06ExtractKeywords.pkl and b/cp/tests/unitgrade_data/Week06ExtractKeywords.pkl differ diff --git a/cp/tests/unitgrade_data/Week06GetPeopleByLanguage.pkl b/cp/tests/unitgrade_data/Week06GetPeopleByLanguage.pkl index d2b329a85c29b596c5df0c52d07c3a2fd9d908ff..cce2b0e954fd7978757864f33bd02d76d289759d 100644 Binary files a/cp/tests/unitgrade_data/Week06GetPeopleByLanguage.pkl and b/cp/tests/unitgrade_data/Week06GetPeopleByLanguage.pkl differ diff --git a/cp/tests/unitgrade_data/Week06LetterHistogram.pkl b/cp/tests/unitgrade_data/Week06LetterHistogram.pkl index db891475285b6ebf010c78d697ff931b17a48745..1a2c7f32393eb919b9d85fadfde664c01ce96abd 100644 Binary files a/cp/tests/unitgrade_data/Week06LetterHistogram.pkl and b/cp/tests/unitgrade_data/Week06LetterHistogram.pkl differ diff --git a/cp/tests/unitgrade_data/Week06MultiTap.pkl b/cp/tests/unitgrade_data/Week06MultiTap.pkl index bce18ca5126b4ad2c27209c3260bf5904cd7353a..f5214f521924ee2b745bd52fc36c8ea9714f7f5e 100644 Binary files a/cp/tests/unitgrade_data/Week06MultiTap.pkl and b/cp/tests/unitgrade_data/Week06MultiTap.pkl differ diff --git a/cp/tests/unitgrade_data/Week06SentimentAnalysis.pkl b/cp/tests/unitgrade_data/Week06SentimentAnalysis.pkl index 270c5519a5b3b4ddcba9c36d40ce6fce15cecb76..93f759d380aed4c14b3b0a667b0a5bff34186f78 100644 Binary files a/cp/tests/unitgrade_data/Week06SentimentAnalysis.pkl and b/cp/tests/unitgrade_data/Week06SentimentAnalysis.pkl differ diff --git a/cp/tests/unitgrade_data/Week06SpellCheck.pkl b/cp/tests/unitgrade_data/Week06SpellCheck.pkl index 3f16e35637ac2e1f152485666e4c718ce85586f3..c6cfb79a0ca476b43c4960465d71a250d6b1fd90 100644 Binary files a/cp/tests/unitgrade_data/Week06SpellCheck.pkl and b/cp/tests/unitgrade_data/Week06SpellCheck.pkl differ diff --git a/cp/tests/unitgrade_data/Week06TextToNato.pkl b/cp/tests/unitgrade_data/Week06TextToNato.pkl index 8b353799fab0ececa102a896d201e03521a546cc..ea4dee7d9ea4a2d4c307bfd882f73ccaa1ab78bc 100644 Binary files a/cp/tests/unitgrade_data/Week06TextToNato.pkl and b/cp/tests/unitgrade_data/Week06TextToNato.pkl differ diff --git a/cp/tests/unitgrade_data/Week06TruncateAndNormalize.pkl b/cp/tests/unitgrade_data/Week06TruncateAndNormalize.pkl index eaea29dbee0b059faec5f7320283f0b71873d6b8..181c221492f7380c30701fc21d23d19781617f00 100644 Binary files a/cp/tests/unitgrade_data/Week06TruncateAndNormalize.pkl and b/cp/tests/unitgrade_data/Week06TruncateAndNormalize.pkl differ diff --git a/cp/tests/unitgrade_data/Week06WordHistogram.pkl b/cp/tests/unitgrade_data/Week06WordHistogram.pkl index b4d54f68a7554007039b5950167d3438c44e32d2..66efaa70d917734a9b93d3761a292818fd05b052 100644 Binary files a/cp/tests/unitgrade_data/Week06WordHistogram.pkl and b/cp/tests/unitgrade_data/Week06WordHistogram.pkl differ