MCPcopy Create free account

hub / github.com/najoungkim/COGS / functions

Functions775 in github.com/najoungkim/COGS

↓ 1 callersFunctionisolate_glossary
Isolate a glossary present inside a word. Returns a list of subwords. In which all 'glossary' glossaries are isolated For example, if
src/OpenNMT-py/tools/apply_bpe.py:272
↓ 1 callersMethodlist_models
Return the list of available models
src/OpenNMT-py/onmt/translate/translation_server.py:228
↓ 1 callersFunctionload_sru_mod
()
src/OpenNMT-py/onmt/models/sru.py:353
↓ 1 callersFunctionload_test_model
Read in multiple models for ensemble.
src/OpenNMT-py/onmt/decoders/ensemble.py:123
↓ 1 callersMethodlog_tensorboard
display statistics to tensorboard
src/OpenNMT-py/onmt/utils/statistics.py:129
↓ 1 callersFunctionmain
()
src/OpenNMT-py/tools/extract_embeddings.py:32
↓ 1 callersFunctionmain
()
src/OpenNMT-py/tools/embeddings_to_torch.py:72
↓ 1 callersFunctionmain
()
src/OpenNMT-py/tools/create_vocabulary.py:38
↓ 1 callersFunctionmain
Learn num_symbols BPE operations from vocabulary, and write to outfile.
src/OpenNMT-py/tools/learn_bpe.py:193
↓ 1 callersFunctionmain
()
scripts/reformat_data_for_opennmt.py:9
↓ 1 callersFunctionmake_learning_rate_decay_fn
Returns the learning decay function from options.
src/OpenNMT-py/onmt/utils/optimizers.py:111
↓ 1 callersMethodmaybe_convert_align
Convert alignment to match detokenized src/tgt (or not). Args: src (str): The tokenized source sequence. tgt (str): T
src/OpenNMT-py/onmt/translate/translation_server.py:761
↓ 1 callersMethodmaybe_detokenize
De-tokenize the sequence (or not) Same args/returns as :func:`tokenize()`
src/OpenNMT-py/onmt/translate/translation_server.py:735
↓ 1 callersMethodmaybe_detokenize_with_align
De-tokenize (or not) the sequence (with alignment). Args: sequence (str): The sequence to detokenize, possible with
src/OpenNMT-py/onmt/translate/translation_server.py:714
↓ 1 callersMethodmaybe_load_sru_mod
()
src/OpenNMT-py/onmt/models/sru.py:389
↓ 1 callersFunctionmaybe_load_vocab
(corpus_type, counters, opt)
src/OpenNMT-py/onmt/bin/preprocess.py:113
↓ 1 callersMethodmaybe_noise_source
(self, batch)
src/OpenNMT-py/onmt/trainer.py:489
↓ 1 callersMethodmaybe_postprocess
Postprocess the sequence (or not)
src/OpenNMT-py/onmt/translate/translation_server.py:776
↓ 1 callersMethodmaybe_preprocess
Preprocess the sequence (or not)
src/OpenNMT-py/onmt/translate/translation_server.py:640
↓ 1 callersMethodmaybe_tokenize
Tokenize the sequence (or not). Same args/returns as `tokenize`
src/OpenNMT-py/onmt/translate/translation_server.py:668
↓ 1 callersMethodmaybe_update_forbidden_tokens
We complete and reorder the list of forbidden_tokens
src/OpenNMT-py/onmt/translate/decode_strategy.py:153
↓ 1 callersMethodnoise_batch
(self, batch)
src/OpenNMT-py/onmt/modules/source_noise.py:25
↓ 1 callersMethodnumericalize
Turn a batch of examples that use this field into a Variable. If the field has ``include_lengths=True``, a tensor of lengths will be
src/OpenNMT-py/onmt/inputters/audio_dataset.py:182
↓ 1 callersMethodnumericalize
Turn a batch of examples that use this field into a Variable. If the field has ``include_lengths=True``, a tensor of lengths will be i
src/OpenNMT-py/onmt/inputters/vec_dataset.py:112
↓ 1 callersMethodnumericalize_inputs
(cls, init_case, params)
src/OpenNMT-py/onmt/tests/test_audio_dataset.py:44
↓ 1 callersMethodoutput
Write out statistics to stdout. Args: step (int): current step n_batch (int): total batches start (int): sta
src/OpenNMT-py/onmt/utils/statistics.py:104
↓ 1 callersMethodparse_opt
Parse the option set passed by the user using `onmt.opts` Args: opt (dict): Options passed by the user Returns:
src/OpenNMT-py/onmt/translate/translation_server.py:349
↓ 1 callersMethodpostprocess
Preprocess a single sequence. Args: sequence (str): The sequence to process. Returns: sequence (str): The po
src/OpenNMT-py/onmt/translate/translation_server.py:785
↓ 1 callersFunctionprefix_route
(route_function, prefix='', mask='{0}{1}')
src/OpenNMT-py/onmt/bin/server.py:19
↓ 1 callersFunctionpreprocess
(opt)
src/OpenNMT-py/onmt/bin/preprocess.py:258
↓ 1 callersMethodpreprocess
Preprocess a single sequence. Args: sequence (str): The sequence to preprocess. Returns: sequence (str): The
src/OpenNMT-py/onmt/translate/translation_server.py:653
↓ 1 callersMethodpreprocess
Preprocess data. Args: x (str): A sentence string (words joined by whitespace). Returns: List[List[str]]: A
src/OpenNMT-py/onmt/inputters/text_dataset.py:136
↓ 1 callersMethodprocess
Convert outputs of preprocess into Tensors. Args: batch (List[List[List[str]]]): A list of length batch size. Eac
src/OpenNMT-py/onmt/inputters/text_dataset.py:101
↓ 1 callersMethodpush
(self, paths, idxs, feats)
src/OpenNMT-py/tools/vid_feature_extractor.py:131
↓ 1 callersFunctionread_files_batch
Reads the provided files in batches
src/OpenNMT-py/tools/create_vocabulary.py:8
↓ 1 callersFunctionread_to_imgs
Yield images and their frame number from a video file.
src/OpenNMT-py/tools/vid_feature_extractor.py:18
↓ 1 callersFunctionread_vocabulary
read vocabulary file produced by get_vocab.py, and filter according to frequency threshold.
src/OpenNMT-py/tools/apply_bpe.py:257
↓ 1 callersMethodrebuild_seg_packages
Rebuild proper segment packages based on initial n_seg.
src/OpenNMT-py/onmt/translate/translation_server.py:545
↓ 1 callersFunctionreplace_pair
Replace all occurrences of a symbol pair ('A', 'B') with a new symbol 'AB
src/OpenNMT-py/tools/learn_bpe.py:151
↓ 1 callersMethodreport_step
Report stats of a step Args: train_stats(Statistics): training stats valid_stats(Statistics): validation sta
src/OpenNMT-py/onmt/utils/report_manager.py:84
↓ 1 callersMethodreport_training
This is the user-defined batch-level traing progress report function. Args: step(int): current step count.
src/OpenNMT-py/onmt/utils/report_manager.py:52
↓ 1 callersMethodreset_parameters
(self)
src/OpenNMT-py/onmt/modules/weight_norm.py:62
↓ 1 callersMethodreset_parameters
(self)
src/OpenNMT-py/onmt/modules/weight_norm.py:121
↓ 1 callersMethodreset_parameters
(self)
src/OpenNMT-py/onmt/modules/weight_norm.py:196
↓ 1 callersFunctionrouge_results_to_str
(results_dict)
src/OpenNMT-py/tools/test_rouge.py:51
↓ 1 callersFunctionsample_with_temperature
Select next tokens randomly from the top k possible next tokens. Samples from a categorical distribution over the ``keep_topk`` words using t
src/OpenNMT-py/onmt/translate/greedy_search.py:6
↓ 1 callersMethodsave
Main entry point for model saver It wraps the `_save` method with checks and apply `keep_checkpoint` related logic
src/OpenNMT-py/onmt/models/model_saver.py:40
↓ 1 callersMethodscore
Args: h_t (FloatTensor): sequence of queries ``(batch, tgt_len, dim)`` h_s (FloatTensor): sequence of sources ``(batch, s
src/OpenNMT-py/onmt/modules/global_attention.py:97
↓ 1 callersMethodsegment
segment single sentence (whitespace-tokenized string) with BPE encoding
src/OpenNMT-py/tools/apply_bpe.py:61
↓ 1 callersFunctionseq_linear
linear transform for 3-d tensor
src/OpenNMT-py/onmt/modules/conv_multi_step_attention.py:11
↓ 1 callersFunctionsetup
(app)
src/OpenNMT-py/docs/source/conf.py:211
↓ 1 callersFunctionshard_iterator
Builds a single iterator yielding every shard of every corpus.
src/OpenNMT-py/onmt/bin/preprocess.py:161
↓ 1 callersFunctionshards
Args: state: A dictionary which corresponds to the output of *LossCompute._make_shard_state(). The values for
src/OpenNMT-py/onmt/utils/loss.py:334
↓ 1 callersFunctionstart
(config_file, url_root="./translator", host="0.0.0.0", port=5000, debu
src/OpenNMT-py/onmt/bin/server.py:14
↓ 1 callersFunctiontest_rouge
Calculate ROUGE scores of sequences passed as an iterator e.g. a list of str, an open file, StringIO or even sys.stdin
src/OpenNMT-py/tools/test_rouge.py:13
↓ 1 callersMethodto_dict
(self)
src/OpenNMT-py/onmt/translate/translation_server.py:609
↓ 1 callersFunctionto_word_align
Convert subword alignment to word alignment. Args: src (string): tokenized sentence in source language. tgt (string): tokenized s
src/OpenNMT-py/onmt/utils/alignment.py:86
↓ 1 callersFunctiontrain
(opt)
src/OpenNMT-py/onmt/bin/train.py:20
↓ 1 callersFunctiontranslate
(opt)
src/OpenNMT-py/onmt/bin/translate.py:14
↓ 1 callersMethodtranslate
Translate content of ``src`` and get gold scores from ``tgt``. Args: src: See :func:`self.src_reader.read()`. tgt: Se
src/OpenNMT-py/onmt/translate/translator.py:281
↓ 1 callersMethodupdate_dropout
(self, dropout)
src/OpenNMT-py/onmt/decoders/decoder.py:238
↓ 1 callersMethodupdate_dropout
(self, dropout)
src/OpenNMT-py/onmt/models/model.py:54
↓ 1 callersFunctionupdate_pair_statistics
Minimally update the indices and frequency of symbol pairs if we merge a pair of symbols, only pairs that overlap with occurrences of this pa
src/OpenNMT-py/tools/learn_bpe.py:73
↓ 1 callersMethodvalidate
Validate model. valid_iter: validate data iterator Returns: :obj:`nmt.Statistics`: validation loss statistics
src/OpenNMT-py/onmt/trainer.py:309
↓ 1 callersMethodvalidate_preprocess_args
(cls, opt)
src/OpenNMT-py/onmt/utils/parse.py:129
↓ 1 callersMethodvalidate_train_opts
(cls, opt)
src/OpenNMT-py/onmt/utils/parse.py:93
↓ 1 callersFunctionvid_len
Return the length of a video.
src/OpenNMT-py/tools/vid_feature_extractor.py:30
Method__call__
(self, parser, namespace, value, option_string=None)
src/OpenNMT-py/onmt/opts.py:810
Method__call__
(self, parser, namespace, values, flag_name)
src/OpenNMT-py/onmt/opts.py:823
Method__call__
(self, batch)
src/OpenNMT-py/onmt/modules/source_noise.py:19
Method__call__
Compute the forward loss, possibly in shards in which case this method also runs the backward pass and returns ``None`` as the loss va
src/OpenNMT-py/onmt/utils/loss.py:122
Method__call__
(self, stats, **kwargs)
src/OpenNMT-py/onmt/utils/earlystopping.py:26
Method__call__
Update the internal state of early stopping mechanism, whether to continue training or stop the train procedure. Che
src/OpenNMT-py/onmt/utils/earlystopping.py:117
Method__call__
(self, parser, namespace, values, option_string=None)
src/OpenNMT-py/onmt/models/sru.py:20
Method__getattr__
(self, attr)
src/OpenNMT-py/onmt/inputters/dataset_base.py:146
Method__getitem__
(self, i)
src/OpenNMT-py/tools/vid_feature_extractor.py:48
Method__getitem__
(self, i)
src/OpenNMT-py/onmt/encoders/ggnn_encoder.py:20
Method__getitem__
(self, item)
src/OpenNMT-py/onmt/inputters/text_dataset.py:150
Method__getitem__
(self, index)
src/OpenNMT-py/onmt/decoders/ensemble.py:29
Method__init__
(self, codes, separator='@@', vocab=None, glossaries=None)
src/OpenNMT-py/tools/apply_bpe.py:33
Method__init__
(self)
src/OpenNMT-py/tools/vid_feature_extractor.py:93
Method__init__
(self, out_path, finished_queue)
src/OpenNMT-py/tools/vid_feature_extractor.py:110
Method__init__
(self, option_strings, dest, help=None, **kwargs)
src/OpenNMT-py/onmt/opts.py:806
Method__init__
(self, model, train_loss, valid_loss, optim, trunc_size=0, shard_size=32, no
src/OpenNMT-py/onmt/trainer.py:122
Method__init__
(self, model_dim, dropout=0.1, aan_useffn=False)
src/OpenNMT-py/onmt/modules/average_attn.py:22
Method__init__
(self, dim=0)
src/OpenNMT-py/onmt/modules/sparse_activations.py:92
Method__init__
(self, embeddings_size, decoder_size, attention_size, output_size)
src/OpenNMT-py/onmt/modules/gate.py:51
Method__init__
(self, embeddings_size, decoder_size, attention_size, output_size)
src/OpenNMT-py/onmt/modules/gate.py:67
Method__init__
(self, embeddings_size, decoder_size, attention_size, output_size)
src/OpenNMT-py/onmt/modules/gate.py:82
Method__init__
(self, dim, coverage=False, attn_type="dot", attn_func="softmax")
src/OpenNMT-py/onmt/modules/global_attention.py:71
Method__init__
(self, weight=None, ignore_index=-100, reduction='elementwise_mean')
src/OpenNMT-py/onmt/modules/sparse_losses.py:56
Method__init__
(self, input_size)
src/OpenNMT-py/onmt/modules/conv_multi_step_attention.py:27
Method__init__
(self, head_count, model_dim, dropout=0.1, max_relative_positions=0)
src/OpenNMT-py/onmt/modules/multi_headed_attn.py:51
Method__init__
(self, vocab_size, force_copy, unk_index=0, ignore_index=-100, eps=1e-20)
src/OpenNMT-py/onmt/modules/copy_generator.py:137
Method__init__
(self, criterion, generator, tgt_vocab, normalize_by_length, lambda_coverage=0.0)
src/OpenNMT-py/onmt/modules/copy_generator.py:182
Method__init__
(self, dropout, dim, max_len=5000)
src/OpenNMT-py/onmt/modules/embeddings.py:22
Method__init__
(self, vec_size, emb_dim, position_encoding=False, dropout=
src/OpenNMT-py/onmt/modules/embeddings.py:58
Method__init__
(self, *args, end_of_sentence_mask=None, **kwargs)
src/OpenNMT-py/onmt/modules/source_noise.py:99
Method__init__
(self, *args, infilling_poisson_lambda=3.0, word_start_mask=None, **kwargs)
src/OpenNMT-py/onmt/modules/source_noise.py:134
Method__init__
(self, noises=[], probs=[], **kwargs)
src/OpenNMT-py/onmt/modules/source_noise.py:333
← previousnext →301–400 of 775, ranked by callers