mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-25 12:39:25 +01:00
pre-commit lint
This commit is contained in:
@@ -19,8 +19,7 @@ class WordSegmentationTest(unittest.TestCase):
|
||||
def test_run_by_direct_model_download(self):
|
||||
cache_path = snapshot_download(self.model_id)
|
||||
tokenizer = TokenClassifcationPreprocessor(cache_path)
|
||||
model = SbertForTokenClassification(
|
||||
cache_path, tokenizer=tokenizer)
|
||||
model = SbertForTokenClassification(cache_path, tokenizer=tokenizer)
|
||||
pipeline1 = WordSegmentationPipeline(model, preprocessor=tokenizer)
|
||||
pipeline2 = pipeline(
|
||||
Tasks.word_segmentation, model=model, preprocessor=tokenizer)
|
||||
|
||||
Reference in New Issue
Block a user