__init__.py 1.04 KB
Newer Older
thomwolf's avatar
thomwolf committed
1
__version__ = "0.5.1"
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
                              OpenAIGPTLMHeadModel, OpenAIGPTDoubleHeadsModel,
                              load_tf_weights_in_openai_gpt)
thomwolf's avatar
thomwolf committed
14
from .modeling_transfo_xl import (TransfoXLConfig, TransfoXLModel, TransfoXLLMHeadModel,
thomwolf's avatar
thomwolf committed
15
                                  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

thomwolf's avatar
thomwolf committed
20
from .file_utils import PYTORCH_PRETRAINED_BERT_CACHE, cached_path