MCPcopy Create free account

hub / github.com/huggingface/transformers / functions

Functions4,119 in github.com/huggingface/transformers

↓ 1 callersMethodvalidation_epoch_end
(self, outputs, prefix="val")
examples/seq2seq/finetune.py:138
↓ 1 callersMethodvalidation_step
(self, batch, batch_idx)
examples/seq2seq/finetune.py:135
↓ 1 callersFunctionverify
(path: str)
src/transformers/convert_graph_to_onnx.py:215
↓ 1 callersMethodwalk_dir
Recursively list all files in a folder.
src/transformers/commands/user.py:176
↓ 1 callersFunctionwhite_space_fix
(text)
src/transformers/data/metrics/squad_metrics.py:31
↓ 1 callersMethodword_to_chars
Get the character span in the original string corresponding to given word in a sequence of the batch. Character spans are re
src/transformers/tokenization_utils_base.py:398
↓ 1 callersMethodword_to_tokens
Get the encoded token span corresponding to a word in the sequence of the batch. Token spans are returned as a TokenSpan NamedTuple
src/transformers/tokenization_utils_base.py:272
↓ 1 callersMethodwords
(self, batch_index: int = 0)
src/transformers/tokenization_utils_base.py:226
↓ 1 callersFunctionwrite_predictions
Write final predictions to the json file and log-odds of null if needed.
templates/adding_a_new_example_script/utils_xxx.py:482
↓ 1 callersFunctionwrite_predictions_extended
XLNet write prediction logic (more complex than Bert's). Write final predictions to the json file and log-odds of null if needed. Re
templates/adding_a_new_example_script/utils_xxx.py:684
Method__call__
(self, step)
src/transformers/optimization_tf.py:36
Method__call__
Accumulates :obj:`gradients` on the current replica.
src/transformers/optimization_tf.py:236
Method__call__
(self, *args, **kwargs)
src/transformers/pipelines.py:96
Method__call__
(self, *args, **kwargs)
src/transformers/pipelines.py:141
Method__call__
(self, *args, **kwargs)
src/transformers/pipelines.py:558
Method__call__
( self, *args, return_tensors=False, return_text=True, clean_up_tokenization_spaces=False, **generate_
src/transformers/pipelines.py:606
Method__call__
(self, *args, **kwargs)
src/transformers/pipelines.py:735
Method__call__
(self, *args, **kwargs)
src/transformers/pipelines.py:811
Method__call__
(self, *args, **kwargs)
src/transformers/pipelines.py:923
Method__call__
(self, *args, **kwargs)
src/transformers/pipelines.py:1029
Method__call__
Args: We support multiple use-cases, the following are exclusive: X: sequence of SquadExample data: seque
src/transformers/pipelines.py:1162
Method__call__
r""" Args: *documents: (list of strings) articles to be summarized return_text: (bool, default=True) whether to add a
src/transformers/pipelines.py:1404
Method__call__
r""" Args: *args: (list of strings) texts to be translated return_text: (bool, default=True) whether to add a decoded
src/transformers/pipelines.py:1532
Method__call__
(self, inputs, mode="embedding")
src/transformers/modeling_tf_t5.py:501
Method__call__
Returns a dictionary containing the encoded sequence or sequence pair and additional information: the mask for sequence classificatio
src/transformers/tokenization_utils_base.py:1550
Method__call__
(self, examples: List[torch.Tensor])
src/transformers/data/data_collator.py:79
Method__call__
(self, features)
tests/test_trainer_distributed.py:45
Method__eq__
(self, other)
src/transformers/modelcard.py:196
Method__eq__
(self, other)
src/transformers/configuration_utils.py:328
Method__get__
(self, obj, objtype=None)
src/transformers/file_utils.py:773
Method__getattr__
(self, item: str)
src/transformers/tokenization_utils_base.py:183
Method__getitem__
If the key is a string, get the value of the dict associated to `key` ('input_ids', 'attention_mask'...) If the key is an integer, get th
src/transformers/tokenization_utils_base.py:169
Method__getitem__
(self, i)
src/transformers/data/datasets/glue.py:142
Method__getitem__
(self, i)
src/transformers/data/datasets/language_modeling.py:74
Method__getitem__
(self, i)
src/transformers/data/datasets/language_modeling.py:100
Method__getitem__
(self, idx)
src/transformers/data/processors/utils.py:136
Method__getitem__
(self, i)
tests/test_trainer_distributed.py:41
Method__getitem__
(self, index)
examples/contrib/mm-imdb/utils_mmimdb.py:62
Method__getitem__
Returns one data pair (source and target).
examples/text-generation/pplm/run_pplm_discrim_train.py:93
Method__getitem__
(self, index)
examples/distillation/lm_seqs_dataset.py:49
Method__getitem__
(self, index)
examples/seq2seq/utils.py:115
Method__getitem__
(self, idx)
examples/seq2seq/bertabs/utils_summarization.py:53
Method__getitem__
(self, i)
examples/multiple-choice/utils_multiple_choice.py:131
Method__getitem__
(self, i)
examples/multiple-choice/utils_multiple_choice.py:212
Method__getitem__
(self, i)
examples/token-classification/utils_ner.py:135
Method__getitem__
(self, i)
examples/token-classification/utils_ner.py:229
Method__getitem__
(self, i)
examples/adversarial/utils_hans.py:153
Method__getitem__
(self, i)
examples/adversarial/utils_hans.py:239
Method__getitem__
(self, idx)
examples/longform-qa/eli5_utils.py:111
Method__getitem__
(self, idx)
examples/longform-qa/eli5_utils.py:362
Method__getstate__
(self)
src/transformers/tokenization_xlm_roberta.py:159
Method__getstate__
(self)
src/transformers/tokenization_albert.py:166
Method__getstate__
(self)
src/transformers/tokenization_reformer.py:126
Method__getstate__
(self)
src/transformers/tokenization_t5.py:148
Method__getstate__
(self)
src/transformers/tokenization_xlnet.py:169
Method__getstate__
(self)
src/transformers/tokenization_marian.py:195
Method__getstate__
(self)
src/transformers/tokenization_camembert.py:245
Method__init__
( self, qas_id, question_text, doc_tokens, orig_answer_text=None,
templates/adding_a_new_example_script/utils_xxx.py:38
Method__init__
( self, unique_id, example_index, doc_span_index, tokens, toke
templates/adding_a_new_example_script/utils_xxx.py:76
Method__init__
( self, vocab_size=50257, n_positions=1024, n_ctx=1024, n_embd=768,
templates/adding_a_new_model/configuration_xxx.py:62
Method__init__
Constructs a XxxTokenizer. Args: **vocab_file**: Path to a one-wordpiece-per-line vocabulary file **do_lower_case**:
templates/adding_a_new_model/tokenization_xxx.py:93
Method__init__
(self, config)
templates/adding_a_new_model/modeling_xxx.py:302
Method__init__
(self, config)
templates/adding_a_new_model/modeling_xxx.py:420
Method__init__
(self, config)
templates/adding_a_new_model/modeling_xxx.py:501
Method__init__
(self, config)
templates/adding_a_new_model/modeling_xxx.py:587
Method__init__
(self, config)
templates/adding_a_new_model/modeling_xxx.py:686
Method__init__
(self, config, **kwargs)
templates/adding_a_new_model/modeling_tf_xxx.py:93
Method__init__
(self, config, *inputs, **kwargs)
templates/adding_a_new_model/modeling_tf_xxx.py:308
Method__init__
(self, config, *inputs, **kwargs)
templates/adding_a_new_model/modeling_tf_xxx.py:349
Method__init__
(self, config, *inputs, **kwargs)
templates/adding_a_new_model/modeling_tf_xxx.py:398
Method__init__
(self, config, *inputs, **kwargs)
templates/adding_a_new_model/modeling_tf_xxx.py:453
Method__init__
(self, config, *inputs, **kwargs)
templates/adding_a_new_model/modeling_tf_xxx.py:510
Method__init__
( self, parent, batch_size=13, seq_length=7, is_tr
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:52
Method__init__
( self, parent, batch_size=13, seq_length=7, is_tr
templates/adding_a_new_model/tests/test_modeling_xxx.py:48
Method__init__
Constructs FlaubertConfig.
src/transformers/configuration_flaubert.py:147
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_electra.py:38
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_electra.py:138
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_electra.py:154
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_electra.py:209
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_electra.py:419
Method__init__
(self, config, input_embeddings, **kwargs)
src/transformers/modeling_tf_electra.py:487
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_electra.py:510
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_electra.py:584
Method__init__
(self, config, *inputs, **kwargs)
src/transformers/modeling_tf_electra.py:666
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:65
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:103
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:213
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:260
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:390
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:481
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:573
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:656
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:752
Method__init__
(self, config)
src/transformers/modeling_distilbert.py:836
Method__init__
(self, d_model_size, num_heads)
src/transformers/modeling_ctrl.py:88
Method__init__
(self, d_model_size, num_heads, dff, rate=0.1)
src/transformers/modeling_ctrl.py:171
Method__init__
(self, config)
src/transformers/modeling_ctrl.py:484
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_albert.py:66
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_albert.py:163
Method__init__
(self, config, **kwargs)
src/transformers/modeling_tf_albert.py:240
← previousnext →1,401–1,500 of 4,119, ranked by callers