Skip to content

Commit

Permalink
Update ernie and roberta tokenizer (PaddlePaddle#36)
Browse files Browse the repository at this point in the history
update ernie and roberta tokenizer
  • Loading branch information
ZeyuChen authored Feb 25, 2021
2 parents aa63a93 + f40d2d6 commit 237a638
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 518 deletions.
3 changes: 2 additions & 1 deletion paddlenlp/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
from .dureader import *
from .cnndm import *
from .poetry import *
from .couplet import *
from .couplet import *
from .experimental import load_dataset
3 changes: 0 additions & 3 deletions paddlenlp/datasets/experimental/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ def get_datasets(cls, *args, **kwargs):
return datasets if len(datasets) > 1 else datasets[0]


Dataset.get_datasets = get_datasets


class MapDataset(Dataset):
"""
Wraps a dataset-like object as a instance of Dataset, and equips it with
Expand Down
Loading

0 comments on commit 237a638

Please sign in to comment.