How to use the chatterbot.corpus.list_corpus_files function in ChatterBot

To help you get started, we’ve selected a few ChatterBot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gunthercox / ChatterBot / tests / test_corpus.py View on Github external
def test_load_corpus_french(self):
        data_files = corpus.list_corpus_files('chatterbot.corpus.french')
        corpus_data = corpus.load_corpus(*data_files)

        self.assertTrue(len(list(corpus_data)))
github gunthercox / chatterbot-corpus / tests / test_corpus.py View on Github external
def test_load_corpus_hindi(self):
        files = corpus.list_corpus_files('chatterbot_corpus/data/hindi')
        corpus_data = list(corpus.load_corpus(*files))

        self.assertTrue(len(corpus_data))
github gunthercox / chatterbot-corpus / tests / test_corpus.py View on Github external
def test_load_corpus_spanish(self):
        files = corpus.list_corpus_files('chatterbot_corpus/data/spanish')
        corpus_data = list(corpus.load_corpus(*files))

        self.assertTrue(len(corpus_data))
github gunthercox / chatterbot-corpus / tests / test_corpus.py View on Github external
def test_load_corpus_portuguese(self):
        files = corpus.list_corpus_files('chatterbot_corpus/data/portuguese')
        corpus_data = list(corpus.load_corpus(*files))

        self.assertTrue(len(corpus_data))
github gunthercox / chatterbot-corpus / tests / test_corpus.py View on Github external
def test_load_corpus_russian(self):
        files = corpus.list_corpus_files('chatterbot_corpus/data/russian')
        corpus_data = list(corpus.load_corpus(*files))

        self.assertTrue(len(corpus_data))
github gunthercox / ChatterBot / tests / test_corpus.py View on Github external
def test_load_corpus_german(self):
        data_files = corpus.list_corpus_files('chatterbot.corpus.german')
        corpus_data = corpus.load_corpus(*data_files)

        self.assertTrue(len(list(corpus_data)))
github gunthercox / chatterbot-corpus / tests / test_corpus.py View on Github external
def test_load_corpus_marathi(self):
        files = corpus.list_corpus_files('chatterbot_corpus/data/marathi')
        corpus_data = list(corpus.load_corpus(*files))

        self.assertTrue(len(corpus_data))