MCPcopy Index your code

hub / github.com/INK-USC/fewNER / functions

Functions128 in github.com/INK-USC/fewNER

Method__init__
(self, instances: List[Instance], transformation_func=None)
src/data/search_space_manager.py:14
Method__init__
Construct the arguments and some hyperparameters :param args:
src/config/config.py:25
Method__init__
A span compose of left, right (inclusive) and its entity label. :param left: :param right: inclusive. :param type:
src/config/eval.py:12
Method__len__
(self)
src/data/transformers_dataset_search.py:269
Method__len__
(self)
src/data/ner_dataset.py:107
Method__len__
(self)
src/data/transformers_dataset.py:614
Function_trans_func
(insts)
src/data/transformers_dataset.py:78
Functionclean_labels
(labels)
dataset/ontonotes_refine.py:51
Methodcollate_fn
(self, batch:List[Feature])
src/data/transformers_dataset_search.py:275
Methodcollate_fn
(self, batch:List[Feature])
src/data/ner_dataset.py:113
Methodcollate_fn
(self, batch:List[Feature])
src/data/transformers_dataset.py:620
Functioncount_labels
(sents)
dataset/ontonotes_refine.py:39
Methoddecode
Decode the batch input :param batchInput: :return:
src/model/transformers_neuralcrf.py:61
Methoddecode
Decode the batch input :param batchInput: :return:
src/model/module/linear_crf_inferencer.py:240
Methodforward
Calculate the negative loglikelihood. :param words: (batch_size x max_seq_len) :param word_seq_lens: (batch_size) :pa
src/model/neuralcrf.py:36
Methodforward
Calculate the negative loglikelihood. :param words: (batch_size x max_seq_len) :param word_seq_lens: (batch_size) :pa
src/model/transformers_neuralcrf.py:35
Methodforward
Encoding the input with BiLSTM :param word_rep: (batch_size, sent_len, input rep size) :param word_seq_lens: (batch_size, 1)
src/model/module/bilstm_encoder.py:29
Methodforward
Get the last hidden states of the LSTM input: char_seq_tensor: (batch_size, sent_len, word_length)
src/model/module/charbilstm.py:25
Methodforward
Calculate the negative log-likelihood :param lstm_scores: :param word_seq_lens: :param tags: :param mask:
src/model/module/linear_crf_inferencer.py:62
Methodforward
Encoding the input with BiLSTM :param word_rep: (batch_size, sent_len, input rep size) :param word_seq_lens: (batch_size, 1)
src/model/module/linear_encoder.py:16
Methodforward
:param word_seq_tensor: (batch_size x max_wordpiece_len x hidden_size) :param orig_to_token_index: (batch_size x max_sent_len x hidd
src/model/embedder/transformers_embedder.py:39
Methodforward
Encoding the input with embedding :param word_seq_tensor: (batch_size, sent_len) NOTE: The word seq actually is already ord
src/model/embedder/word_embedder.py:43
Methodget_marginal_score
(self, lstm_scores: torch.Tensor, word_seq_lens: torch.Tensor)
src/model/module/linear_crf_inferencer.py:76
Methodget_output_dim
(self)
src/model/embedder/transformers_embedder.py:32
Functionlabels_from_sents
(sents)
dataset/ontonotes_refine.py:28
Functionmaybe_show_prompt
(id, word, prompt, mod)
src/data/transformers_dataset_search.py:23
Functionplot_example
BERTScore metric. Args: - :param: `candidate` (str): a candidate sentence - :param: `reference` (str): a reference sentence
score.py:186
Functionscore
BERTScore metric. Args: - :param: `cands` (list of str): candidate sentences - :param: `refs` (list of str or list of list o
score.py:31
← previous101–128 of 128, ranked by callers