def remove_documents_less_than_length(self, max_length: int, non_text: bool = False) -> Self:
        '''
            `

        :param max_length: int, length of document in terms registered in corpus
        :return: Corpus
        '''
        tdm = self.get_metadata_doc_mat() if non_text else self.get_term_doc_mat()
        doc_ids_to_remove = np.where(tdm.sum(axis=1).T.A1 < max_length)
        return self.remove_document_ids(doc_ids_to_remove)

            `

        :param max_length: int, length of document in terms registered in corpus
        :return: Corpus
        
scattertext/TermDocMatrixWithoutCategories.py