Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-research/language
/ functions
Functions
6,154 in github.com/google-research/language
⨍
Functions
6,154
◇
Types & classes
800
↳
Endpoints
12
↓ 4 callers
Function
normalize_answer
Lower text and remove punctuation, articles and extra whitespace.
language/labs/drkit/evaluate.py:321
↓ 4 callers
Function
normalize_answer
Lower text and remove punctuation, articles and extra whitespace.
language/bert_extraction/steal_bert_qa/utils/evaluate_squad_2.py:47
↓ 4 callers
Function
normalize_answer
Lower text and remove punctuation, articles and extra whitespace.
language/bert_extraction/steal_bert_qa/utils/evaluate_squad.py:40
↓ 4 callers
Function
pad
()
language/mentionmemory/utils/mention_preprocess_utils.py:83
↓ 4 callers
Function
point_inside_span
(point: int, span: Tuple[int, int])
language/mentionmemory/data/prepare_tacred.py:106
↓ 4 callers
Function
point_inside_span
(point: int, span: Tuple[int, int])
language/mentionmemory/data/prepare_webred.py:154
↓ 4 callers
Method
process_feature
Write a InputFeature to the TFRecordWriter as a tf.train.Example.
language/labs/drkit/run_dualencoder_lsf.py:2028
↓ 4 callers
Method
read_examples
Read examples from RACE json files.
language/conpono/evals/race_utils.py:98
↓ 4 callers
Method
remove_delims
Removes delimiters from a piece of text.
language/fruit/rendering_utils.py:194
↓ 4 callers
Method
reset
Reset the set of symbols allowed, but keep the same vocabulary size.
language/nql/nql/symbol.py:74
↓ 4 callers
Method
sample_example
Sample an example.
language/compgen/csl/augment/sampler_utils.py:177
↓ 4 callers
Method
sample_nearby_position
Sample an available position that is next to the given position.
language/gscan/data/world.py:60
↓ 4 callers
Function
save_examples
Save examples for the given q_ids as TFRecords.
language/multivec/preprocessing/create_training_data.py:1161
↓ 4 callers
Function
score_fn
(parent_rule, nt_idx, child_rule)
language/compgen/csl/augment/sampler_utils.py:61
↓ 4 callers
Function
shape
Gets the most specific dimension size(s) of the given tensor. This is a wrapper around the two ways to get the shape of a tensor: (1) t.get_shape
language/common/utils/tensor_utils.py:23
↓ 4 callers
Method
shard
()
language/canine/tydiqa/run_tydi_lib.py:356
↓ 4 callers
Function
simple_tf_dataset
A dataset with just two columns, x and y. Args: context: a NeuralQueryContext tuple_input: passed to util.tuple_dataset x_type: type of
language/nql/nql/util_test.py:65
↓ 4 callers
Function
sparse_map
Create mapping from order 3 tensor to vocabulary for copying mechanism. This will return a SparseTensor of size (batch_size, vocab_size, num_cells)
language/labs/exemplar_decoding/models/common.py:176
↓ 4 callers
Method
to_adjustments
Group the yield into `QueryAdjustments`.
language/search_agents/muzero/state_tree.py:313
↓ 4 callers
Function
variational_dropout
(x, dropout_rate, is_train)
language/boolq/run_recurrent_model_boolq.py:304
↓ 3 callers
Method
__init__
(self, name="GNMTEncoder")
language/labs/consistent_zero_shot_nmt/modules/encoders.py:131
↓ 3 callers
Method
__init__
Creates a new loss. Args: name: String used as the most outer scope name of the loss graph.
language/labs/consistent_zero_shot_nmt/models/losses.py:39
↓ 3 callers
Method
__init__
Initializes a retriever. Args: batch_size: Batch size for the batched retrieval. log_every: Logging frequency.
language/casper/retrieve/query_retrievers.py:192
↓ 3 callers
Method
__init__
(self, requested_gpu, available_gpu, message)
language/nql/nql/dist.py:44
↓ 3 callers
Function
_add_city_constants
Add constants for fully and under-specified city.
language/compgen/nqg/tasks/geoquery/geobase_utils.py:42
↓ 3 callers
Function
_add_place_constant
(name, identifiers_to_entities)
language/compgen/nqg/tasks/geoquery/geobase_utils.py:74
↓ 3 callers
Function
_apply_negative_infinity_mask
Where mask is true, add a large negative value.
language/xsp/model/beam_search.py:24
↓ 3 callers
Function
_bsample
Sample n from n with replacement.
language/multiberts/multibootstrap.py:22
↓ 3 callers
Function
_build_transformer_decoder
Generate decoder output given encoder output and decoder input. Args: encoder_output: Tensor of shape (B, L, D). source_len: Tensor of shap
language/xsp/model/transformer.py:40
↓ 3 callers
Function
_bytes_feature
(value)
language/fruit/tf_utils.py:29
↓ 3 callers
Method
_check_lr_near_2_2
(self, y_dict)
language/nql/nql/nql_test.py:393
↓ 3 callers
Function
_check_symbols_eq_and_maybe_increment
Returns new states if token_a and token_b are equal.
language/compgen/csl/induction/unification_utils.py:247
↓ 3 callers
Function
_convert_function
Converts a function that contains nested arguments.
language/compgen/nqg/tasks/geoquery/funql_normalization.py:85
↓ 3 callers
Function
_create_entity_obj
(qid)
language/templama/templama.py:382
↓ 3 callers
Function
_create_examples
Creates examples for the training and dev sets.
language/boolq/run_bert_boolq.py:164
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:236
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:288
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:338
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:377
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:147
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:204
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:245
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:287
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:329
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:370
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:418
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:459
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:500
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:532
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/classifier_utils.py:574
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_classifier.py:286
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_classifier.py:326
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_classifier.py:366
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_classifier.py:407
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_concat_classifier.py:291
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_concat_classifier.py:331
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_concat_classifier.py:371
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_concat_classifier.py:412
↓ 3 callers
Function
_decode
Decode function. Args: cell: rnn cell helper: a helper instance from tf.contrib.seq2seq. Returns: decoded outputs and leng
language/labs/exemplar_decoding/models/hypernet.py:357
↓ 3 callers
Function
_decode
Decode function. Args: cell: rnn cell helper: a helper instance from tf.contrib.seq2seq. Returns: decoded outputs and leng
language/labs/exemplar_decoding/models/baselines.py:281
↓ 3 callers
Function
_decode_record
Decodes a record to a TensorFlow example.
language/multivec/models/ranking_model_experiment_inbatch.py:236
↓ 3 callers
Function
_default_initializer
(model_params)
language/xsp/model/embeddings.py:48
↓ 3 callers
Method
_file_dir
(self, tmp)
language/serene/wiki_index.py:122
↓ 3 callers
Function
_find_direction
Finds a column annotation in a given direction.
language/xsp/data_preprocessing/sql_parsing.py:299
↓ 3 callers
Method
_follow_named_rel
Follow a specific relation in the KG. Args: rel_name: a string naming a declared KG relation inverted: +1 to follow the relation norm
language/nql/nql/__init__.py:272
↓ 3 callers
Method
_format_refs
helper function to get the multi_reference for a file.
language/totto/eval_pipeline_test.py:39
↓ 3 callers
Method
_gen_input
Generate synthetic inputs to test masking.
language/mentionmemory/utils/mention_preprocess_utils_test.py:97
↓ 3 callers
Function
_get_action_logits
Generate output logits given decoder output. This effectively combines a Pointer Network (Vinyals et al., 2015) with a standard softmax output la
language/xsp/model/transformer.py:202
↓ 3 callers
Function
_get_action_types_to_range
Returns a list of ActionTypeRange tuples.
language/xsp/model/decode_utils.py:43
↓ 3 callers
Method
_get_env_output
Query the environment with a new query. Args: query: Query (reformulation) issued by the agent. original_query: The original query
language/search_agents/muzero/env.py:309
↓ 3 callers
Function
_get_frame
Returns the frame (intent and slot labels) of the function call.
language/casper/augment/casper_converters.py:32
↓ 3 callers
Function
_get_free_nt
Get the free NT index.
language/compgen/csl/induction/unification_utils.py:53
↓ 3 callers
Function
_get_name_and_arguments
Returns function name and argument sub-expressions.
language/compgen/nqg/tasks/geoquery/funql_normalization.py:70
↓ 3 callers
Function
_get_name_and_arguments
Returns function name and argument sub-expressions.
language/compgen/nqg/tasks/geoquery/tmcd_utils.py:54
↓ 3 callers
Function
_get_ngram_counter
Get a Counter with the ngrams of the given ID list. Args: ids: np.array or a list corresponding to a single sentence n: n-gram size Retu
language/decontext/eval_util.py:84
↓ 3 callers
Function
_get_normalized_set
Build set of special token ids to ignore when computing matching metrics. Args: vocab: An instance of text_utils.Vocab. Returns: remove:
language/capwap/utils/reward_utils.py:235
↓ 3 callers
Method
_get_program_parts
Parses a SPARQL program into a prefix and conjuncts.
language/compir/dataset_parsers/cfq_parser.py:43
↓ 3 callers
Method
_get_retrieved_documents
Retrieve the appropriate set of documents depending on settings. Args: claim_id: The claim to get documents for scrape_type: The scra
language/serene/fever_tfds.py:189
↓ 3 callers
Function
_get_target_embeddings
Get target embeddings from either output table or copied from input. Args: encoder_input: Tensor representing encoder output of shape (batch si
language/xsp/model/transformer.py:155
↓ 3 callers
Method
_get_test_data_path
(self, file_name)
language/mentionmemory/utils/data_utils_test.py:43
↓ 3 callers
Function
_get_tokens
(item)
language/xsp/data_preprocessing/sql_parsing.py:193
↓ 3 callers
Method
_get_toy_table
Get toy example for testing.
language/totto/table_to_text_utils_test.py:24
↓ 3 callers
Function
_get_vocab_symbols
Returns a list of symbols in a vocabularly file.
language/xsp/model/embeddings.py:28
↓ 3 callers
Method
_in_range
Returns whether candidate UID is within the configured range.
language/fruit/rendering_utils.py:165
↓ 3 callers
Function
_inner_logits
Returns logits computed using inner product of qry and embeddings.
language/labs/drkit/run_dualencoder_lsf.py:1257
↓ 3 callers
Function
_is_comparison
(item)
language/xsp/data_preprocessing/sql_parsing.py:89
↓ 3 callers
Function
_is_from
(item)
language/xsp/data_preprocessing/sql_parsing.py:41
↓ 3 callers
Function
_is_identifier_list
(item)
language/xsp/data_preprocessing/sql_parsing.py:49
↓ 3 callers
Function
_is_literal
(item)
language/xsp/data_preprocessing/sql_parsing.py:97
↓ 3 callers
Function
_is_name
(item)
language/xsp/data_preprocessing/sql_parsing.py:77
↓ 3 callers
Function
_is_select
(item)
language/xsp/data_preprocessing/sql_parsing.py:33
↓ 3 callers
Function
_is_table_alias
(item)
language/xsp/data_preprocessing/sql_parsing.py:108
↓ 3 callers
Function
_is_tensor
Returns true if the value is a tensor or can be converted to a tensor.
language/canine/tensor_contracts.py:952
↓ 3 callers
Function
_num_records
(tf_record_files)
language/multivec/models/ranking_model_experiment_inbatch.py:173
↓ 3 callers
Function
_parse_function
Parse the part relative to a Function in the SQL query.
language/xsp/data_preprocessing/sql_parsing.py:132
↓ 3 callers
Function
_parse_operation
Parse the part relative to an Operation in the SQL query.
language/xsp/data_preprocessing/sql_parsing.py:568
↓ 3 callers
Function
_preprocess_qrys
(in_file, out_file)
language/labs/drkit/metaqa/index.py:246
↓ 3 callers
Function
_printable_tensor
Formats tensor (potentially ragged) so that it can be printed in Assert.
language/canine/tensor_contracts.py:624
↓ 3 callers
Function
_project
(t, name)
language/capwap/utils/transformer_utils.py:440
↓ 3 callers
Function
_replace_nonterminal
Replace corresponding non-terminal in node_2_string with node_1_string.
language/compgen/nqg/tasks/spider/tmcd_utils.py:45
← previous
next →
401–500 of 6,154, ranked by callers