Example #1
0
 def test_split_into_words6(self):
     self.assertEqual(["word1", "word2", "word3"],
                      Sentence._split_into_words(
                          self._client_context.brain.tokenizer,
                          "word1 word2 word3"))
Example #2
0
 def test_split_into_words3(self):
     self.assertEqual([], Sentence._split_into_words(None, "word1"))
Example #3
0
 def test_split_into_words4(self):
     self.assertEqual([], Sentence._split_into_words(None, None))
Example #4
0
 def test_split_into_words2(self):
     self.assertEqual([],
                      Sentence._split_into_words(
                          self._client_context.brain.tokenizer, None))