Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)))
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))
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))
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))
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))
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)))
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))