Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Xu-Wave/EA-CKGQA
/ functions
Functions
209 in github.com/Xu-Wave/EA-CKGQA
⨍
Functions
209
◇
Types & classes
25
↓ 12 callers
Function
create_int_feature
(values)
命名实体识别/bert/run_classifier.py:492
↓ 11 callers
Method
_read_tsv
Reads a tab separated value file.
命名实体识别/bert/run_classifier.py:197
↓ 10 callers
Function
create_initializer
Creates a `truncated_normal_initializer` with the given range.
命名实体识别/bert/modeling.py:375
↓ 9 callers
Method
Get
(self, strUrl)
gStore配置/GstoreConnector.py:40
↓ 9 callers
Function
get_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
命名实体识别/bert/modeling.py:895
↓ 9 callers
Method
tokenize
(self, text)
命名实体识别/bert/tokenization.py:170
↓ 7 callers
Method
convert_tokens_to_ids
(self, tokens)
命名实体识别/bert/tokenization.py:178
↓ 6 callers
Function
create_int_feature
(values)
命名实体识别/bert/create_pretraining_data.py:169
↓ 5 callers
Method
tokenize
Tokenizes a piece of text.
命名实体识别/bert/tokenization.py:196
↓ 4 callers
Method
close
(self)
命名实体识别/bert/run_squad.py:1093
↓ 4 callers
Function
convert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
命名实体识别/bert/tokenization.py:136
↓ 4 callers
Function
dropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
命名实体识别/bert/modeling.py:344
↓ 4 callers
Method
from_json_file
Constructs a `BertConfig` from a json file of parameters.
命名实体识别/bert/modeling.py:91
↓ 4 callers
Method
load
(self, db_name, username, password)
gStore配置/GstoreConnector.py:51
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
命名实体识别/bert/run_classifier.py:278
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
命名实体识别/bert/run_classifier.py:318
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
命名实体识别/bert/run_classifier.py:358
↓ 3 callers
Function
convert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
命名实体识别/bert/tokenization.py:78
↓ 3 callers
Function
file_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
命名实体识别/bert/run_classifier.py:479
↓ 3 callers
Function
file_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
命名实体识别/bert/run_classifier.py:509
↓ 3 callers
Method
get_pooled_output
(self)
命名实体识别/bert/modeling.py:234
↓ 3 callers
Method
get_sequence_output
Gets final hidden layer of encoder. Returns: float Tensor of shape [batch_size, seq_length, hidden_size] corresponding to the final h
命名实体识别/bert/modeling.py:237
↓ 3 callers
Method
ids_tensor
Creates a random int32 tensor of the shape within the vocab size.
命名实体识别/bert/modeling_test.py:147
↓ 3 callers
Function
layer_norm
Run layer normalization on the last dimension of the tensor.
命名实体识别/bert/modeling.py:362
↓ 3 callers
Function
reshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
命名实体识别/bert/modeling.py:932
↓ 3 callers
Method
tokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the given voca
命名实体识别/bert/tokenization.py:308
↓ 3 callers
Function
whitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
命名实体识别/bert/tokenization.py:152
↓ 2 callers
Method
UrlEncode
(self, s)
gStore配置/GstoreConnector.py:22
↓ 2 callers
Function
_get_best_indexes
Get the n-best logits from a list.
命名实体识别/bert/run_squad.py:1023
↓ 2 callers
Function
_strip_spaces
(text)
命名实体识别/bert/run_squad.py:955
↓ 2 callers
Method
apply_gradients
See base class.
命名实体识别/bert/optimization.py:108
↓ 2 callers
Function
compute_loss
(logits, positions)
命名实体识别/bert/run_squad.py:646
↓ 2 callers
Function
convert_examples_to_features
Loads a data file into a list of `InputBatch`s.
命名实体识别/bert/run_squad.py:309
↓ 2 callers
Function
convert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
命名实体识别/bert/run_classifier.py:377
↓ 2 callers
Method
get_all_encoder_layers
(self)
命名实体识别/bert/modeling.py:246
↓ 2 callers
Method
get_dev_examples
Gets a collection of `InputExample`s for the dev set.
命名实体识别/bert/run_classifier.py:184
↓ 2 callers
Method
get_labels
Gets the list of labels for this data set.
命名实体识别/bert/run_classifier.py:192
↓ 2 callers
Method
get_test_examples
Gets a collection of `InputExample`s for prediction.
命名实体识别/bert/run_classifier.py:188
↓ 2 callers
Method
get_train_examples
Gets a collection of `InputExample`s for the train set.
命名实体识别/bert/run_classifier.py:180
↓ 2 callers
Function
input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
命名实体识别/bert/run_squad.py:687
↓ 2 callers
Function
input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
命名实体识别/bert/run_pretraining.py:324
↓ 2 callers
Function
read_squad_examples
Read a SQuAD json file into a list of SquadExample.
命名实体识别/bert/run_squad.py:227
↓ 2 callers
Function
reshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
命名实体识别/bert/modeling.py:946
↓ 2 callers
Function
transpose_for_scores
(input_tensor, batch_size, num_attention_heads, seq_length, width)
命名实体识别/bert/modeling.py:629
↓ 1 callers
Method
__repr__
(self)
命名实体识别/bert/run_squad.py:182
↓ 1 callers
Method
__str__
(self)
命名实体识别/bert/create_pretraining_data.py:79
↓ 1 callers
Function
_check_is_max_context
Check if this is the 'max context' doc span for the token.
命名实体识别/bert/run_squad.py:513
↓ 1 callers
Method
_clean_text
Performs invalid character removal and whitespace cleanup on text.
命名实体识别/bert/tokenization.py:286
↓ 1 callers
Function
_compute_softmax
Compute softmax probability over raw logits.
命名实体识别/bert/run_squad.py:1035
↓ 1 callers
Function
_decode_record
Decodes a record to a TensorFlow example.
命名实体识别/bert/run_squad.py:701
↓ 1 callers
Function
_decode_record
Decodes a record to a TensorFlow example.
命名实体识别/bert/run_pretraining.py:391
↓ 1 callers
Function
_decode_record
Decodes a record to a TensorFlow example.
命名实体识别/bert/run_classifier.py:521
↓ 1 callers
Method
_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
命名实体识别/bert/optimization.py:159
↓ 1 callers
Method
_get_variable_name
Get the variable name from the tensor name.
命名实体识别/bert/optimization.py:169
↓ 1 callers
Function
_improve_answer_span
Returns tokenized answer spans that better match the annotated answer.
命名实体识别/bert/run_squad.py:476
↓ 1 callers
Method
_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
命名实体识别/bert/tokenization.py:264
↓ 1 callers
Function
_is_control
Checks whether `chars` is a control character.
命名实体识别/bert/tokenization.py:374
↓ 1 callers
Function
_is_punctuation
Checks whether `chars` is a punctuation character.
命名实体识别/bert/tokenization.py:386
↓ 1 callers
Function
_is_whitespace
Checks whether `chars` is a whitespace character.
命名实体识别/bert/tokenization.py:362
↓ 1 callers
Method
_run_split_on_punc
Splits punctuation on a piece of text.
命名实体识别/bert/tokenization.py:231
↓ 1 callers
Method
_run_strip_accents
Strips accents from a piece of text.
命名实体识别/bert/tokenization.py:220
↓ 1 callers
Method
_tokenize_chinese_chars
Adds whitespace around any CJK character.
命名实体识别/bert/tokenization.py:251
↓ 1 callers
Function
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
命名实体识别/bert/run_classifier.py:557
↓ 1 callers
Function
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
命名实体识别/bert/extract_features.py:302
↓ 1 callers
Method
assert_all_tensors_reachable
Checks that all the tensors in the graph are reachable from outputs.
命名实体识别/bert/modeling_test.py:162
↓ 1 callers
Function
assert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python i
命名实体识别/bert/modeling.py:959
↓ 1 callers
Function
attention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is all
命名实体识别/bert/modeling.py:558
↓ 1 callers
Method
check_output
(self, result)
命名实体识别/bert/modeling_test.py:114
↓ 1 callers
Function
convert_examples_to_features
Loads a data file into a list of `InputBatch`s.
命名实体识别/bert/extract_features.py:210
↓ 1 callers
Function
create_attention_mask_from_input_mask
Create 3D attention mask from a 2D tensor mask. Args: from_tensor: 2D or 3D Tensor of shape [batch_size, from_seq_length, ...]. to_mask: in
命名实体识别/bert/modeling.py:524
↓ 1 callers
Function
create_float_feature
(values)
命名实体识别/bert/create_pretraining_data.py:174
↓ 1 callers
Function
create_instances_from_document
Creates `TrainingInstance`s for a single document.
命名实体识别/bert/create_pretraining_data.py:223
↓ 1 callers
Function
create_masked_lm_predictions
Creates the predictions for the masked LM objective.
命名实体识别/bert/create_pretraining_data.py:342
↓ 1 callers
Function
create_model
Creates a classification model.
命名实体识别/bert/run_squad.py:550
↓ 1 callers
Function
create_model
Creates a classification model.
命名实体识别/bert/run_classifier_with_tfhub.py:37
↓ 1 callers
Function
create_model
Creates a classification model.
命名实体识别/bert/run_classifier.py:574
↓ 1 callers
Method
create_model
(self)
命名实体识别/bert/modeling_test.py:71
↓ 1 callers
Function
create_tokenizer_from_hub_module
Get the vocab file and casing info from the Hub module.
命名实体识别/bert/run_classifier_with_tfhub.py:146
↓ 1 callers
Function
create_training_instances
Create `TrainingInstance`s from raw text.
命名实体识别/bert/create_pretraining_data.py:179
↓ 1 callers
Function
embedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. vocab_s
命名实体识别/bert/modeling.py:380
↓ 1 callers
Function
embedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embedding
命名实体识别/bert/modeling.py:428
↓ 1 callers
Method
fGet
(self, strUrl, filename)
gStore配置/GstoreConnector.py:44
↓ 1 callers
Method
flatten_recursive
Flattens (potentially nested) a tuple/dictionary/list to a list.
命名实体识别/bert/modeling_test.py:257
↓ 1 callers
Method
fquery
(self, username, password, db_name, sparql, filename)
gStore配置/GstoreConnector.py:79
↓ 1 callers
Method
from_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
命名实体识别/bert/modeling.py:83
↓ 1 callers
Function
gather_indexes
Gathers the vectors at the specific positions over a minibatch.
命名实体识别/bert/run_pretraining.py:308
↓ 1 callers
Function
get_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
命名实体识别/bert/modeling.py:280
↓ 1 callers
Method
get_embedding_output
Gets output of the embedding lookup (i.e., input to the transformer). Returns: float Tensor of shape [batch_size, seq_length, hidden_size]
命名实体识别/bert/modeling.py:249
↓ 1 callers
Method
get_embedding_table
(self)
命名实体识别/bert/modeling.py:260
↓ 1 callers
Function
get_final_text
Project the tokenized prediction back to the original text.
命名实体识别/bert/run_squad.py:927
↓ 1 callers
Function
get_masked_lm_output
Get loss and log probs for the masked LM.
命名实体识别/bert/run_pretraining.py:240
↓ 1 callers
Function
get_next_sentence_output
Get loss and log probs for the next sentence prediction.
命名实体识别/bert/run_pretraining.py:285
↓ 1 callers
Method
get_unreachable_ops
Finds all of the tensors in graph that are unreachable from outputs.
命名实体识别/bert/modeling_test.py:194
↓ 1 callers
Function
input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
命名实体识别/bert/extract_features.py:100
↓ 1 callers
Function
is_whitespace
(c)
命名实体识别/bert/run_squad.py:232
↓ 1 callers
Function
layer_norm_and_dropout
Runs layer normalization followed by dropout.
命名实体识别/bert/modeling.py:368
↓ 1 callers
Function
load_vocab
Loads a vocabulary file into a dictionary.
命名实体识别/bert/tokenization.py:121
↓ 1 callers
Function
model_fn_builder
Returns `model_fn` closure for TPUEstimator.
命名实体识别/bert/run_squad.py:590
↓ 1 callers
Function
model_fn_builder
Returns `model_fn` closure for TPUEstimator.
命名实体识别/bert/run_classifier_with_tfhub.py:87
↓ 1 callers
Function
model_fn_builder
Returns `model_fn` closure for TPUEstimator.
命名实体识别/bert/run_pretraining.py:109
next →
1–100 of 209, ranked by callers