예제 #1
0
 def test_validation(self):
     assert validation.is_valid(PolyglotPipeline.process(text, ))
예제 #2
0
 def test_validation(self):
     assert validation.is_valid(FlairPipeline.process(text, lang='en'))
예제 #3
0
 def test_validation_bpe(self):
     assert validation.is_valid(
         FlairPipeline.process(text, lang='en', bpe_size=50))
예제 #4
0
 def test_validation_chars(self):
     assert validation.is_valid(
         FlairPipeline.process(text, lang='en', char_embeddings=True))
예제 #5
0
 def test_validation_default(self):
     assert validation.is_valid(
         FlairPipeline.process(text, lang='en', use_embeddings='default'))