MCPcopy Create free account

hub / github.com/649453932/Bert-Chinese-Text-Classification-Pytorch / types & classes

Types & classes95 in github.com/649453932/Bert-Chinese-Text-Classification-Pytorch

↓ 7 callersClassBertModel
BERT model ("Bidirectional Embedding Representations from a Transformer"). Params: config: a BertConfig class instance with the configura
pytorch_pretrained/modeling.py:658
↓ 4 callersClassBertLayerNorm
pytorch_pretrained/modeling.py:231
↓ 4 callersClassConv1D
pytorch_pretrained/modeling_gpt2.py:186
↓ 4 callersClassConv1D
pytorch_pretrained/modeling_openai.py:232
↓ 3 callersClassGPT2Config
Configuration class to store the configuration of a `GPT2Model`.
pytorch_pretrained/modeling_gpt2.py:103
↓ 3 callersClassGPT2Model
OpenAI GPT-2 model ("Language Models are Unsupervised Multitask Learners"). Params: config: a GPT2Config class instance with the configur
pytorch_pretrained/modeling_gpt2.py:483
↓ 3 callersClassOpenAIGPTConfig
Configuration class to store the configuration of a `OpenAIGPTModel`.
pytorch_pretrained/modeling_openai.py:127
↓ 3 callersClassOpenAIGPTModel
OpenAI GPT model ("Improving Language Understanding by Generative Pre-Training"). OpenAI GPT use a single embedding matrix to store the word and
pytorch_pretrained/modeling_openai.py:542
↓ 3 callersClassPositionwiseFF
pytorch_pretrained/modeling_transfo_xl.py:343
↓ 3 callersClassTransfoXLConfig
Configuration class to store the configuration of a `TransfoXLModel`.
pytorch_pretrained/modeling_transfo_xl.py:184
↓ 2 callersClassBasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
pytorch_pretrained/tokenization.py:201
↓ 2 callersClassBertLMPredictionHead
pytorch_pretrained/modeling.py:446
↓ 2 callersClassGPT2LMHead
Language Model Head for the transformer
pytorch_pretrained/modeling_gpt2.py:287
↓ 2 callersClassLMOrderedIterator
pytorch_pretrained/tokenization_transfo_xl.py:279
↓ 2 callersClassLogUniformSampler
pytorch_pretrained/modeling_transfo_xl_utilities.py:260
↓ 2 callersClassOpenAIGPTLMHead
Language Model Head for the transformer
pytorch_pretrained/modeling_openai.py:341
↓ 2 callersClassPositionalEmbedding
pytorch_pretrained/modeling_transfo_xl.py:324
↓ 1 callersClassAdaptiveEmbedding
pytorch_pretrained/modeling_transfo_xl.py:758
↓ 1 callersClassAttention
pytorch_pretrained/modeling_gpt2.py:202
↓ 1 callersClassAttention
pytorch_pretrained/modeling_openai.py:255
↓ 1 callersClassBertAdam
Implements BERT version of Adam algorithm with weight decay fix. Params: lr: learning rate warmup: portion of t_total for the warm
pytorch_pretrained/optimization.py:183
↓ 1 callersClassBertAttention
pytorch_pretrained/modeling.py:342
↓ 1 callersClassBertConfig
Configuration class to store the configuration of a `BertModel`.
pytorch_pretrained/modeling.py:134
↓ 1 callersClassBertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
pytorch_pretrained/modeling.py:246
↓ 1 callersClassBertEncoder
pytorch_pretrained/modeling.py:397
↓ 1 callersClassBertForPreTraining
BERT model with pre-training heads. This module comprises the BERT model followed by the two pre-training heads: - the masked language mod
pytorch_pretrained/modeling.py:741
↓ 1 callersClassBertIntermediate
pytorch_pretrained/modeling.py:354
↓ 1 callersClassBertLayer
pytorch_pretrained/modeling.py:383
↓ 1 callersClassBertOnlyMLMHead
pytorch_pretrained/modeling.py:465
↓ 1 callersClassBertOnlyNSPHead
pytorch_pretrained/modeling.py:475
↓ 1 callersClassBertOutput
pytorch_pretrained/modeling.py:369
↓ 1 callersClassBertPooler
pytorch_pretrained/modeling.py:414
↓ 1 callersClassBertPreTrainingHeads
pytorch_pretrained/modeling.py:485
↓ 1 callersClassBertPredictionHeadTransform
pytorch_pretrained/modeling.py:429
↓ 1 callersClassBertSelfAttention
pytorch_pretrained/modeling.py:277
↓ 1 callersClassBertSelfOutput
pytorch_pretrained/modeling.py:328
↓ 1 callersClassBlock
pytorch_pretrained/modeling_gpt2.py:270
↓ 1 callersClassBlock
pytorch_pretrained/modeling_openai.py:324
↓ 1 callersClassDatasetIterater
utils.py:42
↓ 1 callersClassDecoderLayer
pytorch_pretrained/modeling_transfo_xl.py:703
↓ 1 callersClassGPT2MultipleChoiceHead
Classifier Head for the transformer
pytorch_pretrained/modeling_gpt2.py:307
↓ 1 callersClassLMMultiFileIterator
pytorch_pretrained/tokenization_transfo_xl.py:417
↓ 1 callersClassLMShuffledIterator
pytorch_pretrained/tokenization_transfo_xl.py:337
↓ 1 callersClassMLP
pytorch_pretrained/modeling_gpt2.py:256
↓ 1 callersClassMLP
pytorch_pretrained/modeling_openai.py:309
↓ 1 callersClassMultiHeadAttn
pytorch_pretrained/modeling_transfo_xl.py:378
↓ 1 callersClassOpenAIGPTMultipleChoiceHead
Classifier Head for the transformer
pytorch_pretrained/modeling_openai.py:361
↓ 1 callersClassProjectedAdaptiveLogSoftmax
pytorch_pretrained/modeling_transfo_xl_utilities.py:31
↓ 1 callersClassRelLearnableDecoderLayer
pytorch_pretrained/modeling_transfo_xl.py:719
↓ 1 callersClassRelLearnableMultiHeadAttn
pytorch_pretrained/modeling_transfo_xl.py:618
↓ 1 callersClassRelPartialLearnableDecoderLayer
pytorch_pretrained/modeling_transfo_xl.py:738
↓ 1 callersClassRelPartialLearnableMultiHeadAttn
pytorch_pretrained/modeling_transfo_xl.py:537
↓ 1 callersClassTransfoXLCorpus
pytorch_pretrained/tokenization_transfo_xl.py:450
↓ 1 callersClassTransfoXLLMHeadModel
Transformer XL model ("Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context"). This model add an (adaptive) softmax head on to
pytorch_pretrained/modeling_transfo_xl.py:1266
↓ 1 callersClassTransfoXLModel
Transformer XL model ("Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context"). Transformer XL use a relative positioning (with
pytorch_pretrained/modeling_transfo_xl.py:989
↓ 1 callersClassTransfoXLTokenizer
Transformer-XL tokenizer adapted from Vocab class in https://github.com/kimiyoung/transformer-xl
pytorch_pretrained/tokenization_transfo_xl.py:53
↓ 1 callersClassWordpieceTokenizer
Runs WordPiece tokenization.
pytorch_pretrained/tokenization.py:318
ClassBertForMaskedLM
BERT model with the masked language modeling head. This module comprises the BERT model followed by the masked language modeling head. Params
pytorch_pretrained/modeling.py:812
ClassBertForMultipleChoice
BERT model for multiple choice tasks. This module is composed of the BERT model with a linear layer on top of the pooled output. Params:
pytorch_pretrained/modeling.py:1001
ClassBertForNextSentencePrediction
BERT model with next sentence prediction head. This module comprises the BERT model followed by the next sentence classification head. Params
pytorch_pretrained/modeling.py:873
ClassBertForQuestionAnswering
BERT model for Question Answering (span extraction). This module is composed of the BERT model with a linear layer on top of the sequence outp
pytorch_pretrained/modeling.py:1143
ClassBertForSequenceClassification
BERT model for classification. This module is composed of the BERT model with a linear layer on top of the pooled output. Params:
pytorch_pretrained/modeling.py:935
ClassBertForTokenClassification
BERT model for token-level classification. This module is composed of the BERT model with a linear layer on top of the full hidden state of th
pytorch_pretrained/modeling.py:1070
ClassBertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pytorch_pretrained/modeling.py:497
ClassBertTokenizer
Runs end-to-end tokenization: punctuation splitting + wordpiece
pytorch_pretrained/tokenization.py:74
ClassConfig
配置参数
models/bert_DPCNN.py:9
ClassConfig
配置参数
models/ERNIE.py:7
ClassConfig
配置参数
models/bert.py:8
ClassConfig
配置参数
models/bert_RCNN.py:8
ClassConfig
配置参数
models/bert_RNN.py:8
ClassConfig
配置参数
models/bert_CNN.py:8
ClassConstantLR
pytorch_pretrained/optimization.py:81
ClassGPT2DoubleHeadsModel
OpenAI GPT-2 model with a Language Modeling and a Multiple Choice head ("Language Models are Unsupervised Multitask Learners"). Params: c
pytorch_pretrained/modeling_gpt2.py:634
ClassGPT2LMHeadModel
OpenAI GPT-2 model with a Language Modeling head ("Language Models are Unsupervised Multitask Learners"). Params: config: a GPT2Config cl
pytorch_pretrained/modeling_gpt2.py:563
ClassGPT2PreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pytorch_pretrained/modeling_gpt2.py:331
ClassGPT2Tokenizer
GPT-2 BPE tokenizer. Peculiarities: - Byte-level BPE
pytorch_pretrained/tokenization_gpt2.py:86
ClassModel
models/bert_DPCNN.py:34
ClassModel
models/ERNIE.py:32
ClassModel
models/bert.py:32
ClassModel
models/bert_RCNN.py:37
ClassModel
models/bert_RNN.py:37
ClassModel
models/bert_CNN.py:35
ClassOpenAIAdam
Implements Open AI version of Adam algorithm with weight decay fix.
pytorch_pretrained/optimization_openai.py:29
ClassOpenAIGPTDoubleHeadsModel
OpenAI GPT model with a Language Modeling and a Multiple Choice head ("Improving Language Understanding by Generative Pre-Training"). OpenAI GPT
pytorch_pretrained/modeling_openai.py:732
ClassOpenAIGPTLMHeadModel
OpenAI GPT model with a Language Modeling head ("Improving Language Understanding by Generative Pre-Training"). OpenAI GPT use a single embedding
pytorch_pretrained/modeling_openai.py:648
ClassOpenAIGPTPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pytorch_pretrained/modeling_openai.py:388
ClassOpenAIGPTTokenizer
BPE tokenizer. Peculiarities: - lower case all inputs - uses SpaCy tokenizer and ftfy for pre-BPE tokenization if they are instal
pytorch_pretrained/tokenization_openai.py:73
ClassRelMultiHeadAttn
pytorch_pretrained/modeling_transfo_xl.py:459
ClassTransfoXLPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pytorch_pretrained/modeling_transfo_xl.py:822
ClassWarmupConstantSchedule
Linearly increases learning rate from 0 to 1 over `warmup` fraction of training steps. Keeps learning rate equal to 1. after warmup.
pytorch_pretrained/optimization.py:151
ClassWarmupCosineSchedule
Linearly increases learning rate from 0 to 1 over `warmup` fraction of training steps. Decreases learning rate from 1. to 0. over remaining `
pytorch_pretrained/optimization.py:86
ClassWarmupCosineWithHardRestartsSchedule
Linearly increases learning rate from 0 to 1 over `warmup` fraction of training steps. If `cycles` (default=1.) is different from default, le
pytorch_pretrained/optimization.py:111
ClassWarmupCosineWithWarmupRestartsSchedule
All training progress is divided in `cycles` (default=1.) parts of equal length. Every part follows a schedule with the first `warmup` fracti
pytorch_pretrained/optimization.py:130
ClassWarmupLinearSchedule
Linearly increases learning rate from 0 to 1 over `warmup` fraction of training steps. Linearly decreases learning rate from 1. to 0. over re
pytorch_pretrained/optimization.py:162
Class_LRSchedule
Parent of all LRSchedules here.
pytorch_pretrained/optimization.py:35