mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-24 03:59:23 +01:00
Merge branch 'feat/nlp' into nlp/space/dst
This commit is contained in:
@@ -16,8 +16,6 @@ class SbertForSentimentClassification(SbertForSequenceClassificationBase):
|
||||
|
||||
Args:
|
||||
model_dir (str): the model path.
|
||||
model_cls (Optional[Any], optional): model loader, if None, use the
|
||||
default loader to load model weights, by default None.
|
||||
"""
|
||||
super().__init__(
|
||||
model_dir, *args, model_args={'num_labels': 2}, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user