MCPcopy Create free account

hub / github.com/DevSinghSachan/syntax-augmented-bert / types & classes

Types & classes67 in github.com/DevSinghSachan/syntax-augmented-bert

↓ 5 callersClassInputExample
A single training/test example for simple sequence classification.
utils/utils.py:24
↓ 4 callersClassScaledEmbedding
Embedding layer that initialises its values to using a truncated normal variable scaled by the inverse of the embedding dimension.
model/graph_encoder.py:54
↓ 2 callersClassBertModel
model/syntax_bert.py:313
↓ 2 callersClassCRF
model/crf.py:53
↓ 2 callersClassDynamicLossScaler
Class that manages dynamic loss scaling. It is recommended to use :class:`DynamicLossScaler` indirectly, by supplying ``dynamic_loss_scale=T
fp16/loss_scaler.py:62
↓ 2 callersClassFeaturizedDataLoader
utils/loader.py:281
↓ 2 callersClassFeaturizedDataset
utils/loader.py:124
↓ 2 callersClassGNNRelationModel
model/graph_encoder.py:110
↓ 2 callersClassOntonotes
This DatasetReader is designed to read in the English OntoNotes v5.0 data in the format used by the CoNLL 2011/2012 shared tasks. In order to
dataset_reader/ontonotes_utils.py:90
↓ 2 callersClassSequenceCriteriaCRF
model/loss.py:31
↓ 2 callersClassTree
Reused tree object from stanfordnlp/treelstm.
model/tree.py:11
↓ 1 callersClassBertAttention
model/syntax_bert.py:165
↓ 1 callersClassBertEncoder
model/syntax_bert.py:206
↓ 1 callersClassBertLayer
model/syntax_bert.py:186
↓ 1 callersClassBertSelfAttention
model/syntax_bert.py:81
↓ 1 callersClassCoNLL2005
This DatasetReader is designed to read in the CoNLL-2005 SRL data. The file path provided to this class can then be any of the train, test or
dataset_reader/conll2005_utils.py:66
↓ 1 callersClassCoNLL2005Sentence
A class representing the annotations available for a single CONLL formatted sentence. Parameters ---------- domain_placeholder : ``st
dataset_reader/conll2005_utils.py:13
↓ 1 callersClassDenseSparseAdam
NOTE: This class has been copied verbatim from the separate Dense and Sparse versions of Adam in Pytorch. Implements Adam algorithm with
utils/optimizers.py:240
↓ 1 callersClassFeedForwardLayer
model/graph_encoder.py:316
↓ 1 callersClassGATEncoderLayer
model/graph_encoder.py:271
↓ 1 callersClassJointFusionAttention
model/syntax_bert.py:146
↓ 1 callersClassLossScaler
Class that manages a static loss scale. This class is intended to interact with :class:`FP16_Optimizer`, and should not be directly manipula
fp16/loss_scaler.py:25
↓ 1 callersClassMultipleOptimizer
utils/optimizers.py:202
↓ 1 callersClassMultipleScheduler
utils/optimizers.py:185
↓ 1 callersClassOntonotesSentence
A class representing the annotations available for a single CONLL formatted sentence. Parameters ---------- document_id : ``str``
dataset_reader/ontonotes_utils.py:18
↓ 1 callersClassOptimizer
utils/optimizers.py:31
↓ 1 callersClassPooler
model/syntax_bert.py:267
↓ 1 callersClassRelationalBertSelfAttention
model/graph_encoder.py:332
↓ 1 callersClassRobertaEmbeddings
Same as BertEmbeddings with a tiny tweak for positional embeddings indexing.
model/syntax_roberta.py:129
↓ 1 callersClassRobertaModel
model/syntax_roberta.py:157
↓ 1 callersClasstofp16
Utility module that implements:: def forward(self, input): return input.half()
fp16/fp16util.py:22
ClassBertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
model/syntax_roberta.py:89
ClassBertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
model/syntax_bert.py:241
ClassCoNLL2005BrownSRLProcessor
utils/utils.py:350
ClassCoNLL2005Reader
This DatasetReader is designed to read in the English OntoNotes v5.0 data for semantic role labelling. It returns a dataset of instances with
dataset_reader/conll2005_reader.py:38
ClassCoNLL2005WSJSRLProcessor
utils/utils.py:313
ClassDataProcessor
Base class for data converters for sequence classification data sets.
utils/utils.py:73
ClassFP16Model
Convert model to half precision in a batchnorm-safe way.
fp16/fp16util.py:86
ClassFP16_Module
fp16/fp16_opt.py:59
ClassFP16_Optimizer
:class:`FP16_Optimizer` is designed to wrap an existing PyTorch optimizer, and manage static or dynamic loss scaling and master weights in a
fp16/fp16_opt.py:74
ClassFreezeWarmupLinearSchedule
Linear warmup and then linear decay. Linearly increases learning rate from 0 to 1 over `warmup_steps` training steps. Linearly decrea
utils/schedulers.py:22
ClassGATEncoder
model/graph_encoder.py:252
ClassGELU
model/graph_encoder.py:72
ClassGNNClassifier
A wrapper classifier for GNNRelationModel.
model/graph_encoder.py:81
ClassGruGateLayer
We make use of the GRUCell in Pytorch. This formulation is somewhat different from the paper: "https://arxiv.org/pdf/1910.06764.pdf" Stab
model/gate.py:37
ClassHighwayGateLayer
model/gate.py:5
ClassInputFeatures
A single set of features of data.
utils/utils.py:50
ClassInputGateLayer
model/gate.py:15
ClassLabelSmoothingLoss
With label smoothing, KL-divergence between q_{smoothed ground truth prob.}(w) and p_{prob. computed by model}(w) is minimized.
model/loss.py:6
ClassMultiplicativeIntegrationGateLayer
model/gate.py:58
ClassNERScore
utils/utils.py:502
ClassNoamAdamSchedule
utils/schedulers.py:5
ClassOntoNotesNERProcessor
Processor for OntoNotes-5.0 NER task
utils/utils.py:141
ClassOntoNotesSRLProcessor
utils/utils.py:257
ClassOntonotesNamedEntityRecognition
This DatasetReader is designed to read in the English OntoNotes v5.0 data for fine-grained named entity recognition. It returns a dataset of
dataset_reader/ontonotes_ner_reader.py:16
ClassRobertaConfig
model/syntax_roberta.py:153
ClassSRLScore
This class uses the external srl-eval.pl script for computing the CoNLL SRL metrics. Note that this metric reads and writes from disk quite a
utils/utils.py:592
ClassSigmoidTanhGateLayer
model/gate.py:25
ClassSrlReader
This DatasetReader is designed to read in the English OntoNotes v5.0 data for semantic role labelling. It returns a dataset of instances with
dataset_reader/ontonotes_srl_reader.py:87
ClassSst2Processor
Processor for the SST-2 data set (GLUE version).
utils/utils.py:105
ClassSyntaxBertConfig
model/syntax_bert.py:33
ClassSyntaxBertForSequenceClassification
model/syntax_bert.py:451
ClassSyntaxBertForTokenClassification
model/syntax_bert.py:490
ClassSyntaxRobertaConfig
model/syntax_roberta.py:41
ClassSyntaxRobertaForTokenClassification
model/syntax_roberta.py:189
ClassTacredProcessor
Processor for the TACRED relation extraction data set (EMNLP 2017)
utils/utils.py:192
ClassTacredScore
utils/utils.py:416