Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brightmart/roberta_zh
/ types & classes
Types & classes
14 in github.com/brightmart/roberta_zh
⨍
Functions
123
◇
Types & classes
14
↓ 3 callers
Class
InputExample
A single training/test example for simple sequence classification.
run_classifier.py:128
↓ 2 callers
Class
InputFeatures
A single set of features of data.
run_classifier.py:159
↓ 2 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
run_classifier.py:148
↓ 2 callers
Class
TrainingInstance
A single training instance (sentence pair).
create_pretraining_data.py:70
↓ 1 callers
Class
AdamWeightDecayOptimizer
A basic Adam optimizer that includes "correct" L2 weight decay.
optimization.py:116
↓ 1 callers
Class
AdamWeightDecayOptimizer
A basic Adam optimizer that includes "correct" L2 weight decay.
optimization_finetuning.py:87
↓ 1 callers
Class
BasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
tokenization.py:187
↓ 1 callers
Class
BertConfig
Configuration for `BertModel`.
modeling.py:31
↓ 1 callers
Class
WordpieceTokenizer
Runs WordPiece tokenziation.
tokenization.py:302
Class
BertModel
BERT model ("Bidirectional Encoder Representations from Transformers"). Example usage: ```python # Already been converted into WordPiece token
modeling.py:107
Class
DataProcessor
Base class for data converters for sequence classification data sets.
run_classifier.py:175
Class
FullTokenizer
Runs end-to-end tokenziation.
tokenization.py:163
Class
LCQMCPairClassificationProcessor
Processor for the internal data set. sentence pair classification
run_classifier.py:205
Class
SentencePairClassificationProcessor
Processor for the internal data set. sentence pair classification
run_classifier.py:690