Regression

tests.test_model.TestCorpus.test_mfw (from pytest)

Failing for the past 1 build (Since #74 )
Took 1 ms.

This test is unclaimed

Error Message

TypeError: sort() takes 1 positional argument but 2 were given

Stacktrace

self = <test_model.TestCorpus object at 0x7fbb4024f8d0>
corpus = <cophi.model.Corpus object at 0x7fbb5e1522b0>

    def test_mfw(self, corpus):
>       assert corpus.mfw(1, as_list=False, rel=False).sum() == 3

tests/test_model.py:204: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cophi.model.Corpus object at 0x7fbb5e1522b0>, n = 1, rel = False
as_list = False

    def mfw(self, n=100, rel=False, as_list=True):
        """Most frequent words.
    
        Parameters:
            n (int): Number of most frequent words (optional).
            rel (int): If True, use relative frequencies for
                sorting (optional).
            as_list: If True, return just tokens in a list (optional).
        """
>       dtm = self.sort(self.dtm)
E       TypeError: sort() takes 1 positional argument but 2 were given

src/cophi/model.py:431: TypeError