__init__.py 1.01 KB
Newer Older
thomwolf's avatar
thomwolf committed
1
__version__ = "0.5.0"
thomwolf's avatar
thomwolf committed
2
from .tokenization import BertTokenizer, BasicTokenizer, WordpieceTokenizer
thomwolf's avatar
thomwolf committed
3
from .tokenization_openai import OpenAIGPTTokenizer
4
from .tokenization_transfo_xl import (TransfoXLTokenizer, TransfoXLCorpus)
5

thomwolf's avatar
thomwolf committed
6
7
from .modeling import (BertConfig, BertModel, BertForPreTraining,
                       BertForMaskedLM, BertForNextSentencePrediction,
8
                       BertForSequenceClassification, BertForMultipleChoice,
thomwolf's avatar
thomwolf committed
9
10
                       BertForTokenClassification, BertForQuestionAnswering,
                       load_tf_weights_in_bert)
thomwolf's avatar
thomwolf committed
11
from .modeling_openai import (OpenAIGPTConfig, OpenAIGPTModel,
thomwolf's avatar
thomwolf committed
12
13
14
15
                              OpenAIGPTLMHeadModel, OpenAIGPTDoubleHeadsModel,
                              load_tf_weights_in_openai_gpt)
from .modeling_transfo_xl import (TransfoXLConfig, TransfoXLModel,
                                  load_tf_weights_in_transfo_xl)
16

thomwolf's avatar
thomwolf committed
17
from .optimization import BertAdam
thomwolf's avatar
thomwolf committed
18
from .optimization_openai import OpenAIAdam
19

20
from .file_utils import PYTORCH_PRETRAINED_BERT_CACHE