Commit 11220df8 authored by Mohammad's avatar Mohammad
Browse files

tokenizer moved to its own directory

parent 5050203f
from . import indexed_dataset from . import indexed_dataset
from .bert_tokenization import FullTokenizer as FullBertTokenizer
...@@ -24,7 +24,7 @@ from torch.utils.data import Dataset ...@@ -24,7 +24,7 @@ from torch.utils.data import Dataset
from megatron import mpu from megatron import mpu
from megatron.data import helpers from megatron.data import helpers
from megatron.data import FullBertTokenizer from megatron.tokenizer.bert_tokenization import FullTokenizer as FullBertTokenizer
from megatron.data.dataset_utils import build_training_sample from megatron.data.dataset_utils import build_training_sample
from megatron.data.indexed_dataset import make_dataset as make_indexed_dataset from megatron.data.indexed_dataset import make_dataset as make_indexed_dataset
from megatron.utils import print_rank_0 from megatron.utils import print_rank_0
......
...@@ -21,7 +21,7 @@ import time ...@@ -21,7 +21,7 @@ import time
import torch import torch
from megatron.data.tokenizer import build_tokenizer from megatron.tokenizer import build_tokenizer
from .arguments import parse_args from .arguments import parse_args
_GLOBAL_ARGS = None _GLOBAL_ARGS = None
......
# coding=utf-8
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from .tokenizer import build_tokenizer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment