Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChineseGLUE/ChineseGLUE
/ types & classes
Types & classes
518 in github.com/ChineseGLUE/ChineseGLUE
⨍
Functions
3,165
◇
Types & classes
518
↓ 16 callers
Class
BertLayerNorm
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:251
↓ 16 callers
Class
InputExample
A single training/test example for simple sequence classification. Args: guid: Unique id for the example. text_a: string. Th
baselines/models_pytorch/classifier_pytorch/processors/utils.py:22
↓ 14 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/xlnet/run_classifier.py:152
↓ 13 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/ernie/run_classifier.py:132
↓ 13 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/bert_wwm_ext/run_classifier.py:132
↓ 13 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/roberta_wwm_large_ext/run_classifier.py:132
↓ 13 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/bert/run_classifier.py:132
↓ 12 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/roberta_wwm_ext/run_classifier.py:132
↓ 12 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/xlnet/run_classifier_thucnews.py:147
↓ 11 callers
Class
_CapturedObject
A placeholder to capture an object. This is useful when we need to capture a Python object in the Tensorflow control flow body function and use i
baselines/models/xlnet/tpu_estimator.py:3028
↓ 10 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/roberta/run_classifier.py:133
↓ 10 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/albert/run_classifier.py:133
↓ 9 callers
Class
Conv1D
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:442
↓ 8 callers
Class
BertModel
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:736
↓ 7 callers
Class
AlbertModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Flo
baselines/models_pytorch/classifier_pytorch/transformers/modeling_albert.py:439
↓ 7 callers
Class
BertModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:536
↓ 5 callers
Class
SequenceSummary
r""" Compute a single vector summary of a sequence hidden states according to various possibilities: Args of the config class: sum
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:681
↓ 5 callers
Class
XLNetModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:568
↓ 4 callers
Class
Identity
r"""A placeholder identity operator that is argument-insensitive.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:43
↓ 4 callers
Class
InputFeatures
A single set of features of data.
baselines/models/roberta/run_classifier.py:164
↓ 4 callers
Class
InputFeatures
A single set of features of data.
baselines/models/albert/run_classifier.py:164
↓ 4 callers
Class
InputFeatures
A single set of features of data.
baselines/models/roberta_wwm_ext/run_classifier.py:166
↓ 4 callers
Class
InputFeatures
A single set of features of data.
baselines/models/ernie/run_classifier.py:166
↓ 4 callers
Class
InputFeatures
A single set of features of data.
baselines/models/bert_wwm_ext/run_classifier.py:166
↓ 4 callers
Class
InputFeatures
A single set of features of data.
baselines/models/roberta_wwm_large_ext/run_classifier.py:166
↓ 4 callers
Class
InputFeatures
A single set of features of data.
baselines/models/bert/run_classifier.py:166
↓ 4 callers
Class
InputFeatures
A single set of features of data.
baselines/models/xlnet/classifier_utils.py:28
↓ 4 callers
Class
PaddingInputExample
Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of examples
baselines/models/xlnet/classifier_utils.py:17
↓ 4 callers
Class
XLMModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlm.py:318
↓ 3 callers
Class
ALBertModel
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:776
↓ 3 callers
Class
BasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
baselines/models_pytorch/mrc_pytorch/tools/offical_tokenization.py:134
↓ 3 callers
Class
DistilBertModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
baselines/models_pytorch/classifier_pytorch/transformers/modeling_distilbert.py:397
↓ 3 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/roberta/run_ner.py:120
↓ 3 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/roberta_wwm_ext/run_ner.py:120
↓ 3 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/ernie/run_ner.py:120
↓ 3 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/bert_wwm_ext/run_ner.py:120
↓ 3 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/roberta_wwm_large_ext/run_ner.py:120
↓ 3 callers
Class
InputExample
A single training/test example for simple sequence classification.
baselines/models/bert/run_ner.py:126
↓ 3 callers
Class
InputFeatures
A single set of features of data.
baselines/models/xlnet/run_cmrc_drcd.py:197
↓ 3 callers
Class
PaddingInputExample
Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of examples
baselines/models/roberta/run_classifier.py:153
↓ 3 callers
Class
PaddingInputExample
Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of examples
baselines/models/albert/run_classifier.py:153
↓ 3 callers
Class
PaddingInputExample
Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of exampl
baselines/models/roberta_wwm_ext/run_classifier.py:153
↓ 3 callers
Class
PaddingInputExample
Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of exampl
baselines/models/ernie/run_classifier.py:153
↓ 3 callers
Class
PaddingInputExample
Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of examples
baselines/models/bert_wwm_ext/run_classifier.py:153
↓ 3 callers
Class
PaddingInputExample
Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of exampl
baselines/models/roberta_wwm_large_ext/run_classifier.py:153
↓ 3 callers
Class
PaddingInputExample
Fake example so the num input examples is a multiple of the batch size. When running eval/predict on the TPU, we need to pad the number of exampl
baselines/models/bert/run_classifier.py:153
↓ 3 callers
Class
ProgressBar
custom progress bar Example: >>> pbar = ProgressBar(n_total=30,desc='training') >>> step = 2 >>> pbar(step=step)
baselines/models_pytorch/classifier_pytorch/tools/progressbar.py:3
↓ 3 callers
Class
RobertaModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
baselines/models_pytorch/classifier_pytorch/transformers/modeling_roberta.py:132
↓ 3 callers
Class
_Inputs
A data structure representing the input_fn returned values. This also supports the returned value from input_fn as `Dataset`.
baselines/models/xlnet/tpu_estimator.py:3108
↓ 3 callers
Class
_InputsWithStoppingSignals
Inputs with `_StopSignals` inserted into the dataset.
baselines/models/xlnet/tpu_estimator.py:3178
↓ 3 callers
Class
_OutfeedHostCall
Support for `eval_metrics` and `host_call` in TPUEstimatorSpec.
baselines/models/xlnet/tpu_estimator.py:1635
↓ 3 callers
Class
_OutfeedHostCallHook
Hook to run host calls when use_tpu=False.
baselines/models/xlnet/tpu_estimator.py:1818
↓ 2 callers
Class
AlbertLMPredictionHead
baselines/models_pytorch/classifier_pytorch/transformers/modeling_albert.py:298
↓ 2 callers
Class
BasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_bert.py:269
↓ 2 callers
Class
BertConfig
Configuration class to store the configuration of a `BertModel`.
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:64
↓ 2 callers
Class
BertIntermediate
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:289
↓ 2 callers
Class
BertLMPredictionHead
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:398
↓ 2 callers
Class
BertLMPredictionHead
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:548
↓ 2 callers
Class
BertLayer
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:463
↓ 2 callers
Class
BertPooler
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:366
↓ 2 callers
Class
BertPooler
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:518
↓ 2 callers
Class
BertPreTrainingHeads
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:587
↓ 2 callers
Class
BertPredictionHeadTransform
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:381
↓ 2 callers
Class
BertSelfAttention
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:177
↓ 2 callers
Class
Converter
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:177
↓ 2 callers
Class
FeatureWriter
Writes InputFeature to TF example file.
baselines/models/roberta_wwm_ext/run_squad.py:1058
↓ 2 callers
Class
FeatureWriter
Writes InputFeature to TF example file.
baselines/models/ernie/run_squad.py:1058
↓ 2 callers
Class
FeatureWriter
Writes InputFeature to TF example file.
baselines/models/bert_wwm_ext/run_squad.py:1058
↓ 2 callers
Class
FeatureWriter
Writes InputFeature to TF example file.
baselines/models/roberta_wwm_large_ext/run_squad.py:1058
↓ 2 callers
Class
FeatureWriter
Writes InputFeature to TF example file.
baselines/models/bert/run_squad.py:1058
↓ 2 callers
Class
FeatureWriter
Writes InputFeature to TF example file.
baselines/models/xlnet/run_cmrc_drcd.py:677
↓ 2 callers
Class
FormatError
baselines/models/roberta/conlleval.py:22
↓ 2 callers
Class
FormatError
baselines/models/roberta_wwm_ext/conlleval.py:22
↓ 2 callers
Class
FormatError
baselines/models/ernie/conlleval.py:22
↓ 2 callers
Class
FormatError
baselines/models/bert_wwm_ext/conlleval.py:22
↓ 2 callers
Class
FormatError
baselines/models/roberta_wwm_large_ext/conlleval.py:22
↓ 2 callers
Class
FormatError
baselines/models/bert/conlleval.py:22
↓ 2 callers
Class
GPT2Model
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
baselines/models_pytorch/classifier_pytorch/transformers/modeling_gpt2.py:320
↓ 2 callers
Class
LMOrderedIterator
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:272
↓ 2 callers
Class
Node
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:35
↓ 2 callers
Class
OpenAIGPTModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
baselines/models_pytorch/classifier_pytorch/transformers/modeling_openai.py:329
↓ 2 callers
Class
PoolerAnswerClass
Compute SQuAD 2.0 answer class from classification and start tokens hidden states.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:528
↓ 2 callers
Class
PoolerEndLogits
Compute SQuAD end_logits from sequence hidden states and start token hidden state.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:484
↓ 2 callers
Class
PoolerStartLogits
Compute SQuAD start_logits from sequence hidden states.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:461
↓ 2 callers
Class
StatesMachine
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:101
↓ 2 callers
Class
TPUInfeedOutfeedSessionHook
A Session hook setting up the TPU initialization, infeed, and outfeed. This hook does two major things: 1. initialize and shutdown TPU system.
baselines/models/xlnet/tpu_estimator.py:413
↓ 2 callers
Class
TrainingInstance
A single training instance (sentence pair).
baselines/models/roberta/create_pretraining_data.py:70
↓ 2 callers
Class
TrainingInstance
A single training instance (sentence pair).
baselines/models/albert/create_pretraining_data.py:71
↓ 2 callers
Class
TrainingInstance
A single training instance (sentence pair).
baselines/models/albert/resources/create_pretraining_data_roberta.py:70
↓ 2 callers
Class
_CapturingContext
Tracks references to Tensors defined in TPU replication.
baselines/models/xlnet/tpu_estimator.py:3078
↓ 2 callers
Class
_OpQueueContext
Manages work queue and thread for a infeed/outfeed thread.
baselines/models/xlnet/tpu_estimator.py:365
↓ 1 callers
Class
ALBertEmbeddings
ALBert embeddings.
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:300
↓ 1 callers
Class
ALBertEncoder
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:501
↓ 1 callers
Class
ALBertForPreTraining
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:889
↓ 1 callers
Class
ALBertForQA
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:1108
↓ 1 callers
Class
AdamW
Implements Adam algorithm with weight decay fix. Parameters: lr (float): learning rate. Default 1e-3. betas (tuple of 2 floats):
baselines/models_pytorch/classifier_pytorch/transformers/optimization.py:107
↓ 1 callers
Class
AdamWeightDecayOptimizer
A basic Adam optimizer that includes "correct" L2 weight decay.
baselines/models/roberta/optimization.py:116
↓ 1 callers
Class
AdamWeightDecayOptimizer
A basic Adam optimizer that includes "correct" L2 weight decay.
baselines/models/roberta/optimization_finetuning.py:87
↓ 1 callers
Class
AdamWeightDecayOptimizer
A basic Adam optimizer that includes "correct" L2 weight decay.
baselines/models/albert/optimization_finetuning.py:87
↓ 1 callers
Class
AdamWeightDecayOptimizer
A basic Adam optimizer that includes "correct" L2 weight decay.
baselines/models/roberta_wwm_ext/optimization.py:87
next →
1–100 of 518, ranked by callers