Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
/ types & classes
Types & classes
95 in github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
⨍
Functions
349
◇
Types & classes
95
↓ 7 callers
Class
BertModel
BERT model ("Bidirectional Embedding Representations from a Transformer"). Params: config: a BertConfig class instance with the configura
pytorch_pretrained/modeling.py:658
↓ 4 callers
Class
BertLayerNorm
pytorch_pretrained/modeling.py:231
↓ 4 callers
Class
Conv1D
pytorch_pretrained/modeling_gpt2.py:186
↓ 4 callers
Class
Conv1D
pytorch_pretrained/modeling_openai.py:232
↓ 3 callers
Class
GPT2Config
Configuration class to store the configuration of a `GPT2Model`.
pytorch_pretrained/modeling_gpt2.py:103
↓ 3 callers
Class
GPT2Model
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 callers
Class
OpenAIGPTConfig
Configuration class to store the configuration of a `OpenAIGPTModel`.
pytorch_pretrained/modeling_openai.py:127
↓ 3 callers
Class
OpenAIGPTModel
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 callers
Class
PositionwiseFF
pytorch_pretrained/modeling_transfo_xl.py:343
↓ 3 callers
Class
TransfoXLConfig
Configuration class to store the configuration of a `TransfoXLModel`.
pytorch_pretrained/modeling_transfo_xl.py:184
↓ 2 callers
Class
BasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
pytorch_pretrained/tokenization.py:201
↓ 2 callers
Class
BertLMPredictionHead
pytorch_pretrained/modeling.py:446
↓ 2 callers
Class
GPT2LMHead
Language Model Head for the transformer
pytorch_pretrained/modeling_gpt2.py:287
↓ 2 callers
Class
LMOrderedIterator
pytorch_pretrained/tokenization_transfo_xl.py:279
↓ 2 callers
Class
LogUniformSampler
pytorch_pretrained/modeling_transfo_xl_utilities.py:260
↓ 2 callers
Class
OpenAIGPTLMHead
Language Model Head for the transformer
pytorch_pretrained/modeling_openai.py:341
↓ 2 callers
Class
PositionalEmbedding
pytorch_pretrained/modeling_transfo_xl.py:324
↓ 1 callers
Class
AdaptiveEmbedding
pytorch_pretrained/modeling_transfo_xl.py:758
↓ 1 callers
Class
Attention
pytorch_pretrained/modeling_gpt2.py:202
↓ 1 callers
Class
Attention
pytorch_pretrained/modeling_openai.py:255
↓ 1 callers
Class
BertAdam
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 callers
Class
BertAttention
pytorch_pretrained/modeling.py:342
↓ 1 callers
Class
BertConfig
Configuration class to store the configuration of a `BertModel`.
pytorch_pretrained/modeling.py:134
↓ 1 callers
Class
BertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
pytorch_pretrained/modeling.py:246
↓ 1 callers
Class
BertEncoder
pytorch_pretrained/modeling.py:397
↓ 1 callers
Class
BertForPreTraining
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 callers
Class
BertIntermediate
pytorch_pretrained/modeling.py:354
↓ 1 callers
Class
BertLayer
pytorch_pretrained/modeling.py:383
↓ 1 callers
Class
BertOnlyMLMHead
pytorch_pretrained/modeling.py:465
↓ 1 callers
Class
BertOnlyNSPHead
pytorch_pretrained/modeling.py:475
↓ 1 callers
Class
BertOutput
pytorch_pretrained/modeling.py:369
↓ 1 callers
Class
BertPooler
pytorch_pretrained/modeling.py:414
↓ 1 callers
Class
BertPreTrainingHeads
pytorch_pretrained/modeling.py:485
↓ 1 callers
Class
BertPredictionHeadTransform
pytorch_pretrained/modeling.py:429
↓ 1 callers
Class
BertSelfAttention
pytorch_pretrained/modeling.py:277
↓ 1 callers
Class
BertSelfOutput
pytorch_pretrained/modeling.py:328
↓ 1 callers
Class
Block
pytorch_pretrained/modeling_gpt2.py:270
↓ 1 callers
Class
Block
pytorch_pretrained/modeling_openai.py:324
↓ 1 callers
Class
DatasetIterater
utils.py:42
↓ 1 callers
Class
DecoderLayer
pytorch_pretrained/modeling_transfo_xl.py:703
↓ 1 callers
Class
GPT2MultipleChoiceHead
Classifier Head for the transformer
pytorch_pretrained/modeling_gpt2.py:307
↓ 1 callers
Class
LMMultiFileIterator
pytorch_pretrained/tokenization_transfo_xl.py:417
↓ 1 callers
Class
LMShuffledIterator
pytorch_pretrained/tokenization_transfo_xl.py:337
↓ 1 callers
Class
MLP
pytorch_pretrained/modeling_gpt2.py:256
↓ 1 callers
Class
MLP
pytorch_pretrained/modeling_openai.py:309
↓ 1 callers
Class
MultiHeadAttn
pytorch_pretrained/modeling_transfo_xl.py:378
↓ 1 callers
Class
OpenAIGPTMultipleChoiceHead
Classifier Head for the transformer
pytorch_pretrained/modeling_openai.py:361
↓ 1 callers
Class
ProjectedAdaptiveLogSoftmax
pytorch_pretrained/modeling_transfo_xl_utilities.py:31
↓ 1 callers
Class
RelLearnableDecoderLayer
pytorch_pretrained/modeling_transfo_xl.py:719
↓ 1 callers
Class
RelLearnableMultiHeadAttn
pytorch_pretrained/modeling_transfo_xl.py:618
↓ 1 callers
Class
RelPartialLearnableDecoderLayer
pytorch_pretrained/modeling_transfo_xl.py:738
↓ 1 callers
Class
RelPartialLearnableMultiHeadAttn
pytorch_pretrained/modeling_transfo_xl.py:537
↓ 1 callers
Class
TransfoXLCorpus
pytorch_pretrained/tokenization_transfo_xl.py:450
↓ 1 callers
Class
TransfoXLLMHeadModel
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 callers
Class
TransfoXLModel
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 callers
Class
TransfoXLTokenizer
Transformer-XL tokenizer adapted from Vocab class in https://github.com/kimiyoung/transformer-xl
pytorch_pretrained/tokenization_transfo_xl.py:53
↓ 1 callers
Class
WordpieceTokenizer
Runs WordPiece tokenization.
pytorch_pretrained/tokenization.py:318
Class
BertForMaskedLM
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
Class
BertForMultipleChoice
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
Class
BertForNextSentencePrediction
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
Class
BertForQuestionAnswering
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
Class
BertForSequenceClassification
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
Class
BertForTokenClassification
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
Class
BertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pytorch_pretrained/modeling.py:497
Class
BertTokenizer
Runs end-to-end tokenization: punctuation splitting + wordpiece
pytorch_pretrained/tokenization.py:74
Class
Config
配置参数
models/bert_DPCNN.py:9
Class
Config
配置参数
models/ERNIE.py:7
Class
Config
配置参数
models/bert.py:8
Class
Config
配置参数
models/bert_RCNN.py:8
Class
Config
配置参数
models/bert_RNN.py:8
Class
Config
配置参数
models/bert_CNN.py:8
Class
ConstantLR
pytorch_pretrained/optimization.py:81
Class
GPT2DoubleHeadsModel
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
Class
GPT2LMHeadModel
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
Class
GPT2PreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pytorch_pretrained/modeling_gpt2.py:331
Class
GPT2Tokenizer
GPT-2 BPE tokenizer. Peculiarities: - Byte-level BPE
pytorch_pretrained/tokenization_gpt2.py:86
Class
Model
models/bert_DPCNN.py:34
Class
Model
models/ERNIE.py:32
Class
Model
models/bert.py:32
Class
Model
models/bert_RCNN.py:37
Class
Model
models/bert_RNN.py:37
Class
Model
models/bert_CNN.py:35
Class
OpenAIAdam
Implements Open AI version of Adam algorithm with weight decay fix.
pytorch_pretrained/optimization_openai.py:29
Class
OpenAIGPTDoubleHeadsModel
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
Class
OpenAIGPTLMHeadModel
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
Class
OpenAIGPTPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pytorch_pretrained/modeling_openai.py:388
Class
OpenAIGPTTokenizer
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
Class
RelMultiHeadAttn
pytorch_pretrained/modeling_transfo_xl.py:459
Class
TransfoXLPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pytorch_pretrained/modeling_transfo_xl.py:822
Class
WarmupConstantSchedule
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
Class
WarmupCosineSchedule
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
Class
WarmupCosineWithHardRestartsSchedule
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
Class
WarmupCosineWithWarmupRestartsSchedule
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
Class
WarmupLinearSchedule
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