Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dmis-lab/bern
/ functions
Functions
176 in github.com/dmis-lab/bern
⨍
Functions
176
◇
Types & classes
18
↓ 1 callers
Method
tokenize
(self, text)
biobert_ner/tokenization.py:171
↓ 1 callers
Function
transformer_model
Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of the original Transformer encode
biobert_ner/modeling.py:763
↓ 1 callers
Method
write_tokens
(tokens, mode, req_id)
biobert_ner/run_ner.py:850
Method
__call__
(self, fn)
biobert_ner/utils.py:11
Method
__init__
(self)
normalize.py:16
Method
__init__
(self, params)
server.py:592
Method
__init__
(self, vocab_file, do_lower_case=True)
biobert_ner/tokenization.py:165
Method
__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
biobert_ner/tokenization.py:189
Method
__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=200)
biobert_ner/tokenization.py:304
Method
__init__
(self, prefix)
biobert_ner/utils.py:8
Method
__init__
(self, estimator, input_fn)
biobert_ner/fast_predict2.py:22
Method
__init__
Constructs BertConfig. Args: vocab_size: Vocabulary size of `inputs_ids` in `BertModel`. hidden_size: Size of the encoder
biobert_ner/modeling.py:33
Method
__init__
Constructor for BertModel. Args: config: `BertConfig` instance. is_training: bool. true for training model, false for eva
biobert_ner/modeling.py:130
Method
__init__
Constructs a InputExample. Args: guid: Unique id for the example. text: string. The untokenized text of the first sequenc
biobert_ner/run_ner.py:116
Method
__init__
(self, input_ids, input_mask, segment_ids, label_ids,)
biobert_ner/run_ner.py:134
Method
__init__
(self, _)
biobert_ner/run_ner.py:362
Method
__init__
(self, dict_path)
normalizers/pathway_normalizer.py:5
Method
__init__
(self, dict_path)
normalizers/miRNA_normalizer.py:5
Method
_create_generator
(self)
biobert_ner/fast_predict2.py:31
Function
_inner_input_fn
()
biobert_ner/fast_predict2.py:80
Function
benchmark
(tries, batch_size=None, log_interval=100)
service_checker.py:49
Function
clear_prof_data
()
biobert_ner/utils.py:40
Method
close
(self)
biobert_ner/fast_predict2.py:68
Function
convert_ids_to_tokens
(inv_vocab, ids)
biobert_ner/tokenization.py:149
Method
convert_ids_to_tokens
(self, ids)
biobert_ner/tokenization.py:182
Function
convert_tokens_to_ids
(vocab, tokens)
biobert_ner/tokenization.py:145
Method
create_int_feature
(values)
biobert_ner/run_ner.py:672
Method
do_GET
(self)
server.py:34
Method
do_POST
(self)
server.py:262
Function
example_input_fn
An example input function to pass to predict. It must take a generator as input
biobert_ner/fast_predict2.py:76
Method
fast_input_fn_builder_gen
(self, gen_predict_examples)
biobert_ner/run_ner.py:731
Method
fast_input_fn_builder_gen_batch
(self, gen_predict_examples)
biobert_ner/run_ner.py:754
Function
file_based_input_fn_builder
(input_file, seq_length, drop_remainder)
biobert_ner/run_ner.py:238
Method
filed_based_convert_examples_to_features
(self, examples, max_seq_length, output_file, req_id,
biobert_ner/run_ner.py:663
Function
gelu
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: input_t
biobert_ner/modeling.py:269
Method
get_all_encoder_layers
(self)
biobert_ner/modeling.py:251
Function
get_bern_status
(ps_grep_res)
utils.py:105
Method
get_dev_examples
Gets a collection of `InputExample`s for the dev set.
biobert_ner/run_ner.py:149
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, hidde
biobert_ner/modeling.py:254
Method
get_embedding_table
(self)
biobert_ner/modeling.py:265
Method
get_input_generator
(self, predict_examples, req_id, mode='test')
biobert_ner/run_ner.py:702
Method
get_inputs
(self, predict_examples, req_id, mode='test')
biobert_ner/run_ner.py:715
Function
get_item_key1
(item)
convert.py:550
Function
get_item_key2
(item)
convert.py:553
Method
get_labels
Gets the list of labels for this data set.
biobert_ner/run_ner.py:153
Function
get_pmc_xml
(pmcid, output_path=None)
download.py:117
Method
get_pooled_output
(self)
biobert_ner/modeling.py:239
Function
get_pubmed
(pmid, out_format='json', encoding='unicode')
download.py:531
Function
get_pubmed_xml
(pmid, output_path=None)
download.py:15
Method
get_train_examples
Gets a collection of `InputExample`s for the train set.
biobert_ner/run_ner.py:145
Function
input_fn
(params)
biobert_ner/run_ner.py:257
Function
isFloat
(string)
biobert_ner/ops.py:74
Function
isInt
(string)
biobert_ner/ops.py:66
Function
main
(_)
biobert_ner/run_ner.py:864
Function
model_fn
(features, labels, mode, params)
biobert_ner/run_ner.py:318
Function
pmc_xml2pubtator
(pmcid, xml_path, output_path=None)
download.py:179
Function
printable_text
Returns text encoded in a way suitable for print or `tf.logging`.
biobert_ner/tokenization.py:99
Function
ps_grep
(q)
utils.py:96
Function
pubmed_xml2pubtator
(pmid, xml_path, output_path=None)
download.py:45
Function
query_pubtator2
(pmids, out_format='pubtator', escape_html=True)
download.py:561
Function
query_raw_tmtool
(input_str, trigger='tmVar')
download.py:602
Method
recognize_etype
(self, etype, predict_example_list, tokens, tot_tokens, predict_dict, logits_dict, dat
biobert_ner/run_ner.py:592
Function
run_command
(command, cwd)
utils.py:84
Function
run_normalizer
(data, _)
normalizers/mutation_normalizer.py:24
Function
run_normalizer
(data, _)
normalizers/chemical_normalizer.py:25
Function
run_normalizer
(data, _)
normalizers/species_normalizer.py:24
Method
run_normalizers_wrap
(self, ent_type, base_name, names, saved_items, cur_thread_name, is_raw_text, res
normalize.py:291
Function
stress_test
(num_threads, wait_seconds, num_try)
service_checker.py:185
Function
tmtooljson2bern
(tmtool_res)
convert.py:589
Method
to_json_string
Serializes this instance to a JSON string.
biobert_ner/modeling.py:101
Method
tokenize
Tokenizes a piece of text.
biobert_ner/tokenization.py:197
Method
tokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
biobert_ner/tokenization.py:309
Function
tpu_scaffold
()
biobert_ner/run_ner.py:336
Function
validate_case_matches_checkpoint
Checks whether the casing config is consistent with the checkpoint name.
biobert_ner/tokenization.py:28
Method
with_profiling
(*args, **kwargs)
biobert_ner/utils.py:12
Function
worker
()
download.py:451
← previous
101–176 of 176, ranked by callers