mirror of
https://github.com/modelscope/modelscope.git
synced 2026-05-18 05:05:00 +02:00
fix: UT error
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/8899458 * fix: UT error
This commit is contained in:
@@ -51,7 +51,7 @@ train:
|
||||
num_steps: 100000
|
||||
|
||||
evaluation: # [being used]
|
||||
model_path: .cache/easynlp/bert-base-sst2
|
||||
model_path: .cache/easynlp/
|
||||
max_sequence_length: 128
|
||||
batch_size: 32
|
||||
metrics:
|
||||
|
||||
@@ -42,7 +42,7 @@ class SequenceClassificationTest(unittest.TestCase):
|
||||
|
||||
with zipfile.ZipFile(cache_path_str, 'r') as zipf:
|
||||
zipf.extractall(cache_path.parent)
|
||||
path = r'.cache/easynlp/bert-base-sst2'
|
||||
path = r'.cache/easynlp/'
|
||||
model = SequenceClassificationModel(path)
|
||||
preprocessor = SequenceClassificationPreprocessor(
|
||||
path, first_sequence='sentence', second_sequence=None)
|
||||
@@ -74,7 +74,7 @@ class SequenceClassificationTest(unittest.TestCase):
|
||||
|
||||
with zipfile.ZipFile(cache_path_str, 'r') as zipf:
|
||||
zipf.extractall(cache_path.parent)
|
||||
path = r'.cache/easynlp/bert-base-sst2'
|
||||
path = r'.cache/easynlp/'
|
||||
model = SequenceClassificationModel(path)
|
||||
preprocessor = SequenceClassificationPreprocessor(
|
||||
path, first_sequence='sentence', second_sequence=None)
|
||||
|
||||
Reference in New Issue
Block a user