MCPcopy Create free account

hub / github.com/allenai/scibert / functions

Functions49 in github.com/allenai/scibert

↓ 6 callersFunctiondiff_ci
(baseline_scores, new_scores)
scripts/compute_confidence_intervals.py:37
↓ 4 callersMethodget_output_dim
(self)
scibert/models/dummy_seq2seq.py:27
↓ 2 callersFunctionprocess_paper_file
(part_id, s3_in_dir, out_dir, max_paper_count, with_body)
scripts/build_pretrain_corpus.py:54
↓ 1 callersFunction_convert
Args: data_in: a list of dictionaries each dict has several fields including `sentences` and `ner` `ner` data ar
scripts/sciie_to_conll2003.py:16
↓ 1 callersFunction_get_spacy_nlp
()
scripts/build_pretrain_corpus.py:76
↓ 1 callersFunction_paper_record_to_sentences
(paper_record, with_body)
scripts/build_pretrain_corpus.py:92
↓ 1 callersFunctionconservative_argmax
(hyperparam_metrics)
scripts/KYLE_analyze_beaker_experiments.py:8
↓ 1 callersFunctionconvert
(inpath, outpath)
scripts/sciie_to_conll2003.py:63
↓ 1 callersFunctionconvert
(inpath, outpath)
scripts/rct_to_text.py:12
↓ 1 callersFunctionconvert
(inpath, outpath)
scripts/jurgens_to_text.py:15
↓ 1 callersMethoddecode
Converts the tag ids to the actual tags. ``output_dict["tags"]`` is a list of lists of tag_ids, so we use an ugly nested list
scibert/models/pico_crf_tagger.py:108
↓ 1 callersFunctionget_spacy_sentences
Split given document into its sentences :param doc_text: Text to tokenize :return: list of spacy sentences
scripts/build_pretrain_corpus.py:82
↓ 1 callersFunctionmain
Args: inpath: input file from sciie outpath: output file with relations information with_entity_markers: True/False, if T
scripts/sciie_to_relations.py:14
↓ 1 callersFunctionmain
(param_file: str, args: argparse.Namespace)
scripts/run_with_beaker.py:22
↓ 1 callersFunctionmain
Args: inpath: input file from chemprot in xml format outpath: output file with relations information with_entity_markers:
scripts/chemprot_to_relation.py:14
↓ 1 callersFunctionprocess_paper_record
(paper_record, out_file, with_body)
scripts/build_pretrain_corpus.py:141
↓ 1 callersMethodtext_to_instance
(self, tokens: List[Token], pico_tags: List[str] = None)
scibert/dataset_readers/ebmnlp.py:64
↓ 1 callersMethodtext_to_instance
(self, text: str, label: str = None,
scibert/dataset_readers/classification_dataset_reader.py:47
Method__init__
(self, vocab: Vocabulary, text_field_embedder: TextFieldEmbedder, encoder: S
scibert/models/pico_crf_tagger.py:31
Method__init__
(self, input_dim: int,)
scibert/models/dummy_seq2seq.py:17
Method__init__
(self, vocab: Vocabulary, text_field_embedder: TextFieldEmbedder, text_encod
scibert/models/text_classifier.py:25
Method__init__
(self, vocab: Vocabulary, text_field_embedder: TextFieldEmbedder, verbose_me
scibert/models/bert_text_classifier.py:25
Method__init__
(self, vocab: Vocabulary, text_field_embedder: TextFieldEmbedder, label_name
scibert/models/bert_crf_tagger.py:65
Method__init__
(self, token_indexers: Dict[str, TokenIndexer] = None, label_namespace: str
scibert/dataset_readers/ebmnlp.py:34
Method__init__
(self, lazy: bool = False, tokenizer: Tokenizer = None, tok
scibert/dataset_readers/classification_dataset_reader.py:27
Function_is_divider
(line: str)
scibert/dataset_readers/ebmnlp.py:21
Method_read
(self, file_path: str)
scibert/dataset_readers/ebmnlp.py:42
Method_read
(self, file_path)
scibert/dataset_readers/classification_dataset_reader.py:37
Functionci
(x)
scripts/compute_confidence_intervals.py:32
Functioncompute_full_table
()
scripts/compute_confidence_intervals.py:113
Functioncompute_table_1
(is_paired_ci: bool = False)
scripts/compute_confidence_intervals.py:52
Methoddecode
(self, output_dict: Dict[str, torch.Tensor])
scibert/models/text_classifier.py:101
Methoddecode
Converts the tag ids to the actual tags. ``output_dict["tags"]`` is a list of lists of tag_ids, so we use an ugly nested list
scibert/models/bert_crf_tagger.py:199
Methodforward
(self, tokens: Dict[str, torch.LongTensor], tags: torch.LongTensor = None,
scibert/models/pico_crf_tagger.py:63
Methodforward
(self, inputs: torch.Tensor, mask: torch.Tensor)
scibert/models/dummy_seq2seq.py:35
Methodforward
Parameters ---------- text : Dict[str, torch.LongTensor] From a ``TextField`` label : torch.IntTensor, op
scibert/models/text_classifier.py:55
Methodforward
Parameters ---------- text : Dict[str, torch.LongTensor] From a ``TextField`` label : torch.IntTensor, op
scibert/models/bert_text_classifier.py:51
Methodforward
Parameters ---------- tokens : ``Dict[str, torch.LongTensor]``, required The output of ``TextField.as_array()``,
scibert/models/bert_crf_tagger.py:129
Methodget_input_dim
(self)
scibert/models/dummy_seq2seq.py:23
Methodget_metrics
(self, reset: bool = False)
scibert/models/pico_crf_tagger.py:125
Methodget_metrics
(self, reset: bool = False)
scibert/models/text_classifier.py:106
Methodget_metrics
(self, reset: bool = False)
scibert/models/bert_crf_tagger.py:213
Methodis_bidirectional
(self)
scibert/models/dummy_seq2seq.py:31
Functionis_sentence
Checks if the string is an English sentence. :param sentence: spacy string :return: True / False
scripts/build_pretrain_corpus.py:114
Functionmain
(in_filename, out_filename)
scripts/s2conll_to_conll2003.py:7
Functionmain
(desc: str, not_dry_run: bool = False)
scripts/exp.py:16
Functionmain
(s3_in_dir, out_dir, pool_size=2, num_parts=6000, start_part=0, end_part=1, max_paper_count=10, with_body=Fals
scripts/build_pretrain_corpus.py:33
Functionpaired_ci
(baseline_scores, new_scores)
scripts/compute_confidence_intervals.py:44
Functionprocess
(job)
scripts/build_pretrain_corpus.py:50