1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00

fix typos

This commit is contained in:
WEN Hao
2021-09-11 11:16:27 +08:00
committed by GitHub
parent fc313f4be2
commit 630d5b55ce

View File

@@ -84,7 +84,7 @@ class WordCNNForClassification(nn.Module):
@classmethod
def from_pretrained(cls, name_or_path):
"""Load trained LSTM model by name or from path.
"""Load trained Word CNN model by name or from path.
Args:
name_or_path (:obj:`str`): Name of the model (e.g. "cnn-imdb") or model saved via :meth:`save_pretrained`.