Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ag1988/injecting_numeracy
/ types & classes
Types & classes
71 in github.com/ag1988/injecting_numeracy
⨍
Functions
329
◇
Types & classes
71
↓ 7 callers
Class
BertModel
BERT model ("Bidirectional Embedding Representations from a Transformer"). Params: `config`: a BertConfig class instance with the configu
pre_training/gen_bert/squad_finetuning/modeling.py:769
↓ 4 callers
Class
BertLayerNorm
pre_training/gen_bert/modeling.py:283
↓ 4 callers
Class
BertLayerNorm
pre_training/gen_bert/squad_finetuning/modeling.py:277
↓ 4 callers
Class
DropDataset
pre_training/gen_bert/train_textual_with_numeric.py:116
↓ 3 callers
Class
BertPredictionHeadTransform
pre_training/gen_bert/modeling.py:559
↓ 2 callers
Class
BertLMPredictionHead
pre_training/gen_bert/modeling.py:576
↓ 2 callers
Class
BertLMPredictionHead
pre_training/gen_bert/squad_finetuning/modeling.py:543
↓ 2 callers
Class
BertModel
BERT model ("Bidirectional Embedding Representations from a Transformer"). Params: `config`: a BertConfig class instance with the configu
pre_training/gen_bert/modeling.py:802
↓ 2 callers
Class
BertOnlyMLMHead
pre_training/gen_bert/modeling.py:595
↓ 2 callers
Class
DropDataset
pre_training/gen_bert/finetune_on_drop.py:116
↓ 2 callers
Class
Generator
textual_data_generation/generators/generator.py:40
↓ 2 callers
Class
State
textual_data_generation/generators/state.py:11
↓ 1 callers
Class
BertAttention
pre_training/gen_bert/modeling.py:421
↓ 1 callers
Class
BertAttention
pre_training/gen_bert/squad_finetuning/modeling.py:402
↓ 1 callers
Class
BertConfig
Configuration class to store the configuration of a `BertModel`.
pre_training/gen_bert/modeling.py:181
↓ 1 callers
Class
BertConfig
Configuration class to store the configuration of a `BertModel`.
pre_training/gen_bert/squad_finetuning/modeling.py:177
↓ 1 callers
Class
BertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
pre_training/gen_bert/modeling.py:299
↓ 1 callers
Class
BertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
pre_training/gen_bert/squad_finetuning/modeling.py:292
↓ 1 callers
Class
BertEncoder
pre_training/gen_bert/modeling.py:518
↓ 1 callers
Class
BertEncoder
pre_training/gen_bert/squad_finetuning/modeling.py:486
↓ 1 callers
Class
BertIntermediate
pre_training/gen_bert/modeling.py:469
↓ 1 callers
Class
BertIntermediate
pre_training/gen_bert/squad_finetuning/modeling.py:437
↓ 1 callers
Class
BertLayer
pre_training/gen_bert/modeling.py:498
↓ 1 callers
Class
BertLayer
pre_training/gen_bert/squad_finetuning/modeling.py:466
↓ 1 callers
Class
BertOnlyMLMHead
pre_training/gen_bert/squad_finetuning/modeling.py:562
↓ 1 callers
Class
BertOnlyNSPHead
pre_training/gen_bert/squad_finetuning/modeling.py:572
↓ 1 callers
Class
BertOutput
pre_training/gen_bert/modeling.py:484
↓ 1 callers
Class
BertOutput
pre_training/gen_bert/squad_finetuning/modeling.py:452
↓ 1 callers
Class
BertPooler
pre_training/gen_bert/modeling.py:544
↓ 1 callers
Class
BertPooler
pre_training/gen_bert/squad_finetuning/modeling.py:511
↓ 1 callers
Class
BertPreTrainingHeads
pre_training/gen_bert/squad_finetuning/modeling.py:582
↓ 1 callers
Class
BertPredictionHeadTransform
pre_training/gen_bert/squad_finetuning/modeling.py:526
↓ 1 callers
Class
BertSelfAttention
pre_training/gen_bert/modeling.py:334
↓ 1 callers
Class
BertSelfAttention
pre_training/gen_bert/squad_finetuning/modeling.py:323
↓ 1 callers
Class
BertSelfOutput
pre_training/gen_bert/modeling.py:407
↓ 1 callers
Class
BertSelfOutput
pre_training/gen_bert/squad_finetuning/modeling.py:388
↓ 1 callers
Class
DropExample
pre_training/gen_bert/create_examples_n_features.py:26
↓ 1 callers
Class
DropFeatures
pre_training/gen_bert/create_examples_n_features.py:87
↓ 1 callers
Class
DropReader
pre_training/gen_bert/create_examples_n_features.py:180
↓ 1 callers
Class
InputFeatures
A single set of features of data.
pre_training/gen_bert/squad_finetuning/run_squad_dataset_utils.py:75
↓ 1 callers
Class
MLMDataset
pre_training/gen_bert/train_textual_with_numeric.py:48
↓ 1 callers
Class
MLMDataset
pre_training/gen_bert/finetune_on_drop.py:48
↓ 1 callers
Class
QuestionAnswerGeneratorInterEntityComparison
textual_data_generation/generators/qa_generator.py:224
↓ 1 callers
Class
QuestionAnswerGeneratorInterEntitySum
textual_data_generation/generators/qa_generator.py:451
↓ 1 callers
Class
QuestionAnswerGeneratorInterEntitySuperlative
textual_data_generation/generators/qa_generator.py:301
↓ 1 callers
Class
QuestionAnswerGeneratorIntraEntitySimpleDiff
textual_data_generation/generators/qa_generator.py:87
↓ 1 callers
Class
QuestionAnswerGeneratorIntraEntitySubset
textual_data_generation/generators/qa_generator.py:147
↓ 1 callers
Class
QuestionAnswerGeneratorIntraEntitySuperlative
textual_data_generation/generators/qa_generator.py:387
↓ 1 callers
Class
QuestionAnswerGeneratorSelect
textual_data_generation/generators/qa_generator.py:40
↓ 1 callers
Class
SimpleMLMHead
used for simple decoding based on similarity with output embeddings.
pre_training/gen_bert/modeling.py:960
↓ 1 callers
Class
SpanExtractionHead
Span extraction head for QA. Mostly borrowed from https://github.com/raylin1000/drop-bert/blob/master/drop_bert/augmented_bert.py .
pre_training/gen_bert/modeling.py:1153
↓ 1 callers
Class
SquadExample
A single training/test example for the Squad dataset. For examples without an answer, the start and end position are -1.
pre_training/gen_bert/squad_finetuning/run_squad_dataset_utils.py:35
↓ 1 callers
Class
SyntheticExample
textual_data_generation/generators/generator.py:18
Class
BertForMaskedLM
pre_training/gen_bert/modeling.py:937
Class
BertForMaskedLM
BERT model with the masked language modeling head. This module comprises the BERT model followed by the masked language modeling head. Params
pre_training/gen_bert/squad_finetuning/modeling.py:976
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:
pre_training/gen_bert/squad_finetuning/modeling.py:1203
Class
BertForNextSentencePrediction
BERT model with next sentence prediction head. This module comprises the BERT model followed by the next sentence classification head. Params
pre_training/gen_bert/squad_finetuning/modeling.py:1050
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
pre_training/gen_bert/squad_finetuning/modeling.py:893
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
pre_training/gen_bert/squad_finetuning/modeling.py:1369
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:
pre_training/gen_bert/squad_finetuning/modeling.py:1125
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
pre_training/gen_bert/squad_finetuning/modeling.py:1284
Class
BertOnlyNSPHead
pre_training/gen_bert/modeling.py:605
Class
BertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pre_training/gen_bert/modeling.py:627
Class
BertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
pre_training/gen_bert/squad_finetuning/modeling.py:594
Class
BertPreTrainingHeads
pre_training/gen_bert/modeling.py:615
Class
BertTransformer
Bert encoder + Bert decoder with extra mlm, span extraction, etc heads. TODO: for exractive QA, include BIO tagging head.
pre_training/gen_bert/modeling.py:992
Class
ContainerType
textual_data_generation/generators/element_type.py:25
Class
ElementType
textual_data_generation/generators/element_type.py:7
Class
ExtendedEnum
textual_data_generation/utils/collections.py:6
Class
QuestionAnswerGeneratorBase
textual_data_generation/generators/qa_generator.py:15
Class
VerbType
textual_data_generation/generators/element_type.py:15