e3cc8a4ec79f75dbfa2ab56f74f5a90435cde0f3,tests/test_keyterms.py,ExtractTestCase,test_singlegrank_norm_lower,#ExtractTestCase#,152

Before Change


        return

    def test_singlegrank_norm_lower(self):
        return

    def test_singlegrank_norm_none(self):
        return

After Change


        expected = [
            "new york times jerusalem bureau", "new york times", "friedman",
            "foreign reporting", "international reporting"]
        observed = [
            term for term, _
            in keyterms.singlerank(self.spacy_doc, normalize="lower", n_keyterms=5)]
        self.assertEqual(len(expected), len(observed))
        // can"t do this owing to randomness of results
        // for e, o in zip(expected, observed):
        //     self.assertEqual(e, o)
        for term in observed:
            self.assertEqual(term, term.lower())

    def test_singlegrank_norm_none(self):
        expected = [
            "New York Times Jerusalem", "New York Times", "Friedman",
            "Pulitzer Prize", "foreign reporting"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: chartbeat-labs/textacy
Commit Name: e3cc8a4ec79f75dbfa2ab56f74f5a90435cde0f3
Time: 2016-12-11
Author: burton@chartbeat.com
File Name: tests/test_keyterms.py
Class Name: ExtractTestCase
Method Name: test_singlegrank_norm_lower


Project Name: chartbeat-labs/textacy
Commit Name: e3cc8a4ec79f75dbfa2ab56f74f5a90435cde0f3
Time: 2016-12-11
Author: burton@chartbeat.com
File Name: tests/test_keyterms.py
Class Name: ExtractTestCase
Method Name: test_singlegrank_n_keyterms


Project Name: chartbeat-labs/textacy
Commit Name: e3cc8a4ec79f75dbfa2ab56f74f5a90435cde0f3
Time: 2016-12-11
Author: burton@chartbeat.com
File Name: tests/test_keyterms.py
Class Name: ExtractTestCase
Method Name: test_singlegrank_norm_none


Project Name: chartbeat-labs/textacy
Commit Name: e3cc8a4ec79f75dbfa2ab56f74f5a90435cde0f3
Time: 2016-12-11
Author: burton@chartbeat.com
File Name: tests/test_keyterms.py
Class Name: ExtractTestCase
Method Name: test_singlegrank_norm_normalized_str