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
↓ 1 callers
Function
_find_nt_sub
(state, token_a, token_b)
language/compgen/csl/induction/unification_utils.py:235
↓ 1 callers
Function
_find_possible_candidates
Return possible rule candidates.
language/compgen/csl/induction/greedy_policy.py:40
↓ 1 callers
Function
_find_relevant_examples
Find examples in `dataset` where `rule` could be used in a derivation.
language/compgen/nqg/model/induction/codelength_utils.py:152
↓ 1 callers
Function
_find_relevant_rules
(current_rules, candidate_rule)
language/compgen/csl/induction/greedy_policy.py:29
↓ 1 callers
Function
_find_statement_end_idx
Return end index of nested statement starting at start_idx.
language/xsp/data_preprocessing/abstract_sql.py:330
↓ 1 callers
Function
_find_table
Find schema entity for table.
language/xsp/data_preprocessing/abstract_sql_converters.py:44
↓ 1 callers
Function
_find_table_name_for_column
Returns table name for column or None if cannot find.
language/xsp/data_preprocessing/abstract_sql.py:188
↓ 1 callers
Function
_fingerprint
(node)
language/compgen/nqg/model/parser/data/parsing_utils.py:69
↓ 1 callers
Function
_fixed_memory_luong_score
Implements Luong-style (multiplicative) scoring function. Assumes that keys have batch dimension of 1 (i.e., fixed memory bank). Args: query
language/labs/consistent_zero_shot_nmt/modules/attention_wrappers.py:36
↓ 1 callers
Method
_follow_relation_set
Follow a relation group. Args: rel_expr: A NeuralQueryExpression for what to follow. inverted: +1 to follow the relations normally, -
language/nql/nql/__init__.py:242
↓ 1 callers
Function
_format_label
Converts labels such as 'IN:SET_NAME' to 'IN set name ='.
language/casper/augment/patch_guiding_tag.py:39
↓ 1 callers
Method
_format_tables
helper function to get the tables in parent format for a file.
language/totto/eval_pipeline_test.py:52
↓ 1 callers
Method
_gen_batch_for_test_add_entity_tokens
Generate batch with batchwise mentions to test `add_entity_tokens`.
language/mentionmemory/utils/mention_preprocess_utils_test.py:487
↓ 1 callers
Method
_gen_raw_batch
( self, config: ml_collections.ConfigDict)
language/mentionmemory/tasks/ultra_fine_entity_typing_task_test.py:262
↓ 1 callers
Method
_gen_raw_batch
( self, config: ml_collections.ConfigDict)
language/mentionmemory/tasks/relation_classifier_task_test.py:174
↓ 1 callers
Method
_gen_raw_batch
Generate raw example.
language/mentionmemory/tasks/text_classifier_test.py:89
↓ 1 callers
Method
_gen_raw_sample
Generate raw example.
language/mentionmemory/tasks/ultra_fine_entity_typing_task_test.py:205
↓ 1 callers
Method
_gen_raw_sample
Generate raw example.
language/mentionmemory/tasks/relation_classifier_task_test.py:120
↓ 1 callers
Function
_generate_processed_examples
Generate TF examples.
language/totto/baseline_preprocessing/preprocess_data_main.py:40
↓ 1 callers
Function
_generate_tf_examples
Generate TF examples.
language/question_answering/decatt_docreader/preprocessing/create_nq_short_pipeline_examples.py:51
↓ 1 callers
Function
_generate_tf_examples
Generate TF examples.
language/question_answering/decatt_docreader/preprocessing/create_nq_long_examples.py:56
↓ 1 callers
Function
_get_2_compound_string
(node_1, node_1_idx, node_2)
language/compgen/nqg/tasks/spider/tmcd_utils.py:61
↓ 1 callers
Function
_get_3_compound_string
(node_1, node_1_idx, node_2, node_2_idx, node_3)
language/compgen/nqg/tasks/spider/tmcd_utils.py:67
↓ 1 callers
Function
_get_abstract_sql
Returns string using abstract SQL transformations.
language/xsp/data_preprocessing/abstract_sql_main.py:64
↓ 1 callers
Function
_get_action_id
Returns action_id tensor.
language/xsp/model/decode_utils.py:74
↓ 1 callers
Function
_get_action_type
Returns action_type tensor.
language/xsp/model/decode_utils.py:60
↓ 1 callers
Function
_get_all_aliases
Returns a dictionary of aliases for the tables.
language/xsp/data_preprocessing/sql_parsing.py:241
↓ 1 callers
Function
_get_all_table_names
Returns set of all table names in sql_spans.
language/xsp/data_preprocessing/abstract_sql.py:614
↓ 1 callers
Function
_get_applications
Returns structures for anchored applications.
language/compgen/nqg/model/parser/data/example_converter.py:47
↓ 1 callers
Function
_get_arity
Return the arity of the rule.
language/compgen/csl/qcfg/qcfg_rule.py:133
↓ 1 callers
Function
_get_arity
(source)
language/compgen/nqg/model/qcfg/qcfg_rule.py:70
↓ 1 callers
Function
_get_assignment_map_from_checkpoint
Compute the intersection of the current variables and checkpoint variables.
language/xsp/model/load_from_checkpoint.py:22
↓ 1 callers
Method
_get_atom_map
Gets (utterance, program) pairs, used for adding brackets to programs.
language/compir/dataset_parsers/scan_parser.py:109
↓ 1 callers
Function
_get_atoms_above_count
Return set of atoms that appear >= atom_count times across all examples.
language/compgen/nqg/tasks/mcd_utils.py:384
↓ 1 callers
Function
_get_available_gpus
()
language/nql/nql/dist.py:389
↓ 1 callers
Method
_get_background_candidates
Return background negatives (ie random from wikipedia). During inference, we should not get these, hence the shortcut. Args: claim_lab
language/serene/fever_tfds.py:321
↓ 1 callers
Method
_get_best_eval_result
Get the best eval result from event files. Args: event_files: Absolute pattern of event files. Returns: The best eval result.
language/boolq/utils/best_checkpoint_exporter.py:95
↓ 1 callers
Function
_get_best_joint_indexes
Gets the n-best start and end indices from flat logits.
language/capwap/synthetic/generate_answers.py:557
↓ 1 callers
Function
_get_bucket
(scored_ngram: ScoredNGram, min_score: float, num_buckets: int)
language/wino_dict/create_new_words.py:180
↓ 1 callers
Function
_get_caller_locals
Gets the local variables defined by the calling function.
language/canine/tensor_contracts.py:1038
↓ 1 callers
Function
_get_candidates_b_c
Return candidates where `b` can be applied to `c` to form `a`.
language/compgen/csl/induction/unification_utils.py:113
↓ 1 callers
Function
_get_candidates_c_b
Return candidates where `c` can be applied to `b` to form `a`.
language/compgen/csl/induction/unification_utils.py:403
↓ 1 callers
Function
_get_cfg_nts
Return tuple of NTs corresponding to parse.
language/compgen/csl/augment/joint_sampler.py:98
↓ 1 callers
Method
_get_char_to_byte_map
Returns a map from character to byte offsets. Args: text (str): a Unicode string. Returns: a map from each character offset to a
language/realm/featurization.py:475
↓ 1 callers
Function
_get_compound_string
(outer, outer_arity, inner, inner_idx)
language/compgen/nqg/tasks/geoquery/tmcd_utils.py:69
↓ 1 callers
Function
_get_compounds_inner
Recursively add compound counts to compounds_to_counts.
language/compgen/nqg/tasks/geoquery/tmcd_utils.py:75
↓ 1 callers
Function
_get_compounds_inner
Recursively generates compounds. Each iteration adds the compounds for these paths if inputs are not None: - node_2 -> node_1 - node_3 -> node_
language/compgen/nqg/tasks/spider/tmcd_utils.py:76
↓ 1 callers
Function
_get_config
()
language/compgen/csl/induction/objective_utils_test.py:23
↓ 1 callers
Method
_get_controllable_inputs_targets
Constructs the inputs and targets for the controllable setting.
language/fruit/rendering_utils.py:511
↓ 1 callers
Function
_get_copy_strings
(tf_example)
language/xsp/model/run_inference.py:205
↓ 1 callers
Function
_get_diff
Replaces smalles substring difference between two sentences.
language/wino_dict/utils.py:288
↓ 1 callers
Function
_get_example
Extract relevant fields from json. Args: line: String for json line. Returns: example_id: integer. question: string. contexts: L
language/question_answering/decatt_docreader/experiments/nq_export_scorer.py:46
↓ 1 callers
Function
_get_fk_relations_helper
Returns a ForeignKeyRelation connecting to an unvisited table, or None.
language/xsp/data_preprocessing/abstract_sql.py:539
↓ 1 callers
Function
_get_fk_relations_linking_tables
Returns (List of table names, List of (col name, col name)).
language/xsp/data_preprocessing/abstract_sql.py:552
↓ 1 callers
Function
_get_flattened_non_whitespace_tokens
Returns list of sqlparse Tokens.
language/xsp/data_preprocessing/abstract_sql.py:364
↓ 1 callers
Function
_get_free_nt_replacement
Get the next free NT index.
language/compgen/csl/induction/unification_utils.py:42
↓ 1 callers
Function
_get_from_clause_for_tables
Returns list of SqlSpan tuples for FROM clause.
language/xsp/data_preprocessing/abstract_sql.py:590
↓ 1 callers
Function
_get_func_args
Gets the names and values of the arguments of `func`.
language/canine/tensor_contracts.py:930
↓ 1 callers
Method
_get_inputs_targets
Produces inputs / targets from sentences and evidence.
language/fruit/rendering_utils.py:612
↓ 1 callers
Method
_get_length
Helper to establish length of arguments.
language/capwap/utils/image_utils.py:36
↓ 1 callers
Function
_get_max_rule
Identify a rule to add that maximizes the decrease in codelength.
language/compgen/nqg/model/induction/induction_utils.py:97
↓ 1 callers
Function
_get_mcd_idx_1
Return index of example to swap from examples_1 to examples_2.
language/compgen/nqg/tasks/mcd_utils.py:167
↓ 1 callers
Function
_get_mcd_idx_2
Return index of example to swap from examples_2 to examples_1.
language/compgen/nqg/tasks/mcd_utils.py:190
↓ 1 callers
Function
_get_model_score_fn
(wrapper)
language/compgen/csl/augment/sampler_utils.py:58
↓ 1 callers
Function
_get_non_neural_features
Gets the three non-neural features and the context mask. Args: question_tok_wid: <int32> [batch_size, question_len] question_lens: <int32>
language/question_answering/decatt_docreader/models/nq_long_decatt_model.py:160
↓ 1 callers
Function
_get_num_all_derivations
Return total number of derivations for any target.
language/compgen/nqg/model/induction/codelength_utils.py:50
↓ 1 callers
Function
_get_num_target_derivations
Return number of derivations of target.
language/compgen/nqg/model/induction/codelength_utils.py:74
↓ 1 callers
Function
_get_order
(children)
language/compgen/csl/model/data/parsing_utils.py:27
↓ 1 callers
Function
_get_populate_fn
(idx_to_rule)
language/compgen/nqg/tasks/spider/sql_parser.py:84
↓ 1 callers
Function
_get_position_scores
Get scores that only depend on position. Args: batch_size: <int32> [] num_contexts: <int32> [] max_pos_embs: <int32> for max number of
language/question_answering/decatt_docreader/models/nq_long_decatt_model.py:128
↓ 1 callers
Method
_get_query
(self, index: Optional[int] = None)
language/search_agents/muzero/env.py:301
↓ 1 callers
Function
_get_raw_sari_score
Compute the SARI score for a single prediction and one or more targets. Args: source_ids: a list / np.array of SentencePiece IDs prediction
language/decontext/eval_util.py:102
↓ 1 callers
Function
_get_rc_model_input
Create RC module input from separate batched components. Args: question_ids: <int32> [batch_size, question_len] question_mask: <int32> [bat
language/capwap/utils/reward_utils.py:96
↓ 1 callers
Function
_get_restored_predictions
Returns new predictions dict with FROM clauses restored.
language/xsp/evaluation/restore_from_asql.py:77
↓ 1 callers
Function
_get_rule_penalty
Returns a "penalty" for the rule based on the given set of examples.
language/compgen/csl/induction/objective_utils.py:42
↓ 1 callers
Function
_get_rule_size
Returns the "size" based on number of terminal and nonterminal tokens.
language/compgen/csl/induction/objective_utils.py:31
↓ 1 callers
Function
_get_schema_string
Returns the schema serialized as a string.
language/compgen/nqg/tasks/spider/append_schema.py:42
↓ 1 callers
Function
_get_score_fn
(nonterminal_bias, min_nonterminal_rule_arity)
language/compgen/csl/augment/sampler_utils.py:69
↓ 1 callers
Function
_get_score_fn
Return score_fn.
language/compgen/nqg/model/parser/inference/inference_wrapper.py:36
↓ 1 callers
Function
_get_segment_ids
(tf_example)
language/xsp/model/run_inference.py:216
↓ 1 callers
Method
_get_similar_candidates
Return negative examples that are similar to the claim. Args: claim_label: The label of the fever claim documents: The documents to u
language/serene/fever_tfds.py:271
↓ 1 callers
Function
_get_sorted_nodes
Returns list of nodes sorted by order (ties broken by traversal order).
language/compgen/csl/model/data/forest_serialization.py:40
↓ 1 callers
Function
_get_span_to_nodes_maps
Return maps of span indexes to nodes.
language/compgen/nqg/model/parser/data/forest_serialization.py:40
↓ 1 callers
Function
_get_split_candidates
Implements `SPLIT` procedure described in paper appendix. To explain this function, let us review some notation for SCFGs/QCFGs. Let `g` and `h`
language/compgen/nqg/model/induction/split_utils.py:79
↓ 1 callers
Function
_get_sql_spans_from_actions
Get list of SqlSpan tuples from list of SQLAction objects.
language/xsp/data_preprocessing/abstract_sql_converters.py:222
↓ 1 callers
Function
_get_static_padded_shapes
Return static padded shapes for TPU training.
language/xsp/model/input_pipeline.py:196
↓ 1 callers
Function
_get_sub_paras
Split paragraph object into sub-paragraphs with maximum length.
language/labs/drkit/wikidata/index.py:75
↓ 1 callers
Function
_get_sub_paras
Split paragraph object into sub-paragraphs with maximum length.
language/labs/drkit/metaqa/index.py:55
↓ 1 callers
Function
_get_table_names_from_columns
Return set of table names of SqlColumn tuples in sql_spans.
language/xsp/data_preprocessing/abstract_sql.py:474
↓ 1 callers
Function
_get_tables
Adds table(s) in sqlparse.sql.Token as SqlTable to sql_tables.
language/xsp/data_preprocessing/abstract_sql.py:117
↓ 1 callers
Function
_get_tables_without_column_copies
Returns a list of table names with no corresponding column copies.
language/xsp/data_preprocessing/abstract_sql.py:491
↓ 1 callers
Function
_get_tensor_dim
Gets specified tensor dimension, backing off to a bound if ragged.
language/canine/tensor_contracts.py:1009
↓ 1 callers
Method
_get_terminal_id
(self, symbol)
language/compgen/csl/cky/cfg_converter.py:30
↓ 1 callers
Function
_get_tmp_nt_replacement
(nts)
language/compgen/nqg/model/induction/split_utils.py:36
↓ 1 callers
Method
_get_trimmed_relations
Gets a mapping between relations and their short naming.
language/compir/dataset_parsers/cfq_parser.py:57
↓ 1 callers
Method
_get_variable_name
Get the variable name from the tensor name.
language/canine/bert_optimization.py:168
↓ 1 callers
Method
_get_variable_name
Get the variable name from the tensor name.
language/xsp/model/adam_weight_decay.py:126
↓ 1 callers
Function
_get_vocab_size
(filename)
language/xsp/model/embeddings.py:39
↓ 1 callers
Function
_getfullargspec
(func)
language/canine/tensor_contracts.py:925
↓ 1 callers
Function
_greedy_decode
Fast decoding.
language/xsp/model/transformer.py:457
← previous
next →
1,401–1,500 of 6,154, ranked by callers