@@ -29,7 +31,7 @@ from paddlehub.utils.log import logger
@moduleinfo(
name="ernie_v2_eng_base",
version="2.0.2",
version="2.0.3",
summary=
"Baidu's ERNIE 2.0, Enhanced Representation through kNowledge IntEgration, max_seq_len=512 when predtrained. The module is executed as paddle.dygraph.",
author="paddlepaddle",
...
...
@@ -42,13 +44,13 @@ class ErnieV2(nn.Layer):
"""
def__init__(
self,
task:str=None,
load_checkpoint:str=None,
label_map:Dict=None,
num_classes:int=2,
suffix:bool=False,
**kwargs,
self,
task:str=None,
load_checkpoint:str=None,
label_map:Dict=None,
num_classes:int=2,
suffix:bool=False,
**kwargs,
):
super(ErnieV2,self).__init__()
iflabel_map:
...
...
@@ -64,22 +66,24 @@ class ErnieV2(nn.Layer):
"'sequence_classification' has been deprecated and will be removed in the future.",)