Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/INK-USC/fewNER
/ functions
Functions
128 in github.com/INK-USC/fewNER
⨍
Functions
128
◇
Types & classes
17
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
Function
clean_labels
(labels)
dataset/ontonotes_refine.py:51
Method
collate_fn
(self, batch:List[Feature])
src/data/transformers_dataset_search.py:275
Method
collate_fn
(self, batch:List[Feature])
src/data/ner_dataset.py:113
Method
collate_fn
(self, batch:List[Feature])
src/data/transformers_dataset.py:620
Function
count_labels
(sents)
dataset/ontonotes_refine.py:39
Method
decode
Decode the batch input :param batchInput: :return:
src/model/transformers_neuralcrf.py:61
Method
decode
Decode the batch input :param batchInput: :return:
src/model/module/linear_crf_inferencer.py:240
Method
forward
Calculate the negative loglikelihood. :param words: (batch_size x max_seq_len) :param word_seq_lens: (batch_size) :pa
src/model/neuralcrf.py:36
Method
forward
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
Method
forward
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
Method
forward
Get the last hidden states of the LSTM input: char_seq_tensor: (batch_size, sent_len, word_length)
src/model/module/charbilstm.py:25
Method
forward
Calculate the negative log-likelihood :param lstm_scores: :param word_seq_lens: :param tags: :param mask:
src/model/module/linear_crf_inferencer.py:62
Method
forward
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
Method
forward
: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
Method
forward
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
Method
get_marginal_score
(self, lstm_scores: torch.Tensor, word_seq_lens: torch.Tensor)
src/model/module/linear_crf_inferencer.py:76
Method
get_output_dim
(self)
src/model/embedder/transformers_embedder.py:32
Function
labels_from_sents
(sents)
dataset/ontonotes_refine.py:28
Function
maybe_show_prompt
(id, word, prompt, mod)
src/data/transformers_dataset_search.py:23
Function
plot_example
BERTScore metric. Args: - :param: `candidate` (str): a candidate sentence - :param: `reference` (str): a reference sentence
score.py:186
Function
score
BERTScore metric. Args: - :param: `cands` (list of str): candidate sentences - :param: `refs` (list of str or list of list o
score.py:31
← previous
101–128 of 128, ranked by callers