MCPcopy Create free account

hub / github.com/booknlp/booknlp / functions

Functions133 in github.com/booknlp/booknlp

Methodfix
Ensure tag sequence is BIO-compliant
booknlp/english/tagger.py:251
Methodforward
(self, matrix, index, existing=None, truth=None, token_positions=None, starts=None, ends=None, widths=None, in
booknlp/english/bert_coref_quote_pronouns.py:250
Methodforward
Arguments: logits: [batch_size, seq_len, n_labels] FloatTensor lens: [batch_size] LongTensor
booknlp/common/crf.py:33
Methodforward_supersense
(self, wn, input_ids, matrix1, matrix2, attention_mask=None, transforms=None, labels=None, lens=None)
booknlp/english/tagger.py:136
Functionget_accuracy
(golds, preds, tagset)
booknlp/common/sequence_eval.py:4
Methodget_base
(start, end, preds)
booknlp/english/bert_qa.py:26
Functionget_batches
Partitions a list of sentences (each a list containing [word, label]) into a set of batches Returns: -- batched_sents: original tokens in sentenc
booknlp/common/layered_reader.py:4
Methodget_distance_bucket
(self, dist)
booknlp/english/bert_coref_quote_pronouns.py:556
Methodget_head_in_range
(start, end, tokens)
booknlp/english/english_booknlp.py:172
Methodget_layer_transformation
After predicting a tag sequence, get the information we need to transform the current layer to the next layer (e.g., merging tokens in the same
booknlp/english/tagger.py:280
Methodget_supersense_layer_transformation
After predicting a tag sequence, get the information we need to transform the current layer to the next layer (e.g., merging tokens in the same
booknlp/english/tagger.py:356
Methodmap_honorifics
(term)
booknlp/english/name_coref.py:364
Functionprepare_annotations_from_file
Read a single file of annotations, returning: -- a list of sentences, each a list of [word, label, sentenceID, filename]
booknlp/common/sequence_layered_reader.py:136
Functionprepare_annotations_from_folder
Read folder of annotations, returning: -- a list of sentences, each a list of [word, label, sentenceID, filename]
booknlp/common/sequence_layered_reader.py:147
Methodprint_conll
(self, name, sents, all_ents, assignments, out, token_maps)
booknlp/english/bert_coref_quote_pronouns.py:566
Methodprocess
(self, filename, outFolder, idd)
booknlp/english/english_booknlp.py:332
Functionread_booknlp
(path, model)
booknlp/common/sequence_layered_reader.py:26
Methodread_conll
(self, filename, quotes={})
booknlp/english/bert_coref_quote_pronouns.py:930
Methodread_file
(self, spanFile)
booknlp/english/name_coref.py:256
Functionread_filenames
(filename)
booknlp/common/sequence_layered_reader.py:12
Functionread_tagset
(filename)
booknlp/common/sequence_layered_reader.py:3
Methodread_toks
(self, filename)
booknlp/english/bert_coref_quote_pronouns.py:616
Methodreset_parameters
(self)
booknlp/common/crf.py:30
Methodsupersense_evaluate
(self, test_batched_wn, test_batched_sents, test_batched_data, test_batched_mask, test_batched_labels, test_ba
booknlp/english/tagger.py:919
Methodsupersense_fix
Ensure tag sequence is BIO-compliant
booknlp/english/tagger.py:327
Methodtag
(self, toks)
booknlp/english/litbank_quote.py:7
Methodtag
(self, toks, doEvent=True, doEntities=True, doSS=True)
booknlp/english/entity_tagger.py:85
Methodtag
(self, tokens, g_ents, refs, ref_gender, attributed_quotations, quotes)
booknlp/english/litbank_coref.py:24
Methodtag
(self, quotes, entities, tokens)
booknlp/english/bert_qa.py:24
Methodtag
(self, text)
booknlp/common/pipelines.py:103
Methodtag
(self, text)
booknlp/common/pipelines.py:161
MethodtagFlat
(self, batched_sents, batched_data, batched_mask, batched_transforms, batched_orig_token_lens, ordering)
booknlp/english/tagger.py:1023
Methodtag_pretokenized
(self, toks, sents, spaces)
booknlp/common/pipelines.py:92
← previous101–133 of 133, ranked by callers