Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/allenai/scibert
/ functions
Functions
49 in github.com/allenai/scibert
⨍
Functions
49
◇
Types & classes
7
↳
Endpoints
2
↓ 6 callers
Function
diff_ci
(baseline_scores, new_scores)
scripts/compute_confidence_intervals.py:37
↓ 4 callers
Method
get_output_dim
(self)
scibert/models/dummy_seq2seq.py:27
↓ 2 callers
Function
process_paper_file
(part_id, s3_in_dir, out_dir, max_paper_count, with_body)
scripts/build_pretrain_corpus.py:54
↓ 1 callers
Function
_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 callers
Function
_get_spacy_nlp
()
scripts/build_pretrain_corpus.py:76
↓ 1 callers
Function
_paper_record_to_sentences
(paper_record, with_body)
scripts/build_pretrain_corpus.py:92
↓ 1 callers
Function
conservative_argmax
(hyperparam_metrics)
scripts/KYLE_analyze_beaker_experiments.py:8
↓ 1 callers
Function
convert
(inpath, outpath)
scripts/sciie_to_conll2003.py:63
↓ 1 callers
Function
convert
(inpath, outpath)
scripts/rct_to_text.py:12
↓ 1 callers
Function
convert
(inpath, outpath)
scripts/jurgens_to_text.py:15
↓ 1 callers
Method
decode
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 callers
Function
get_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 callers
Function
main
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 callers
Function
main
(param_file: str, args: argparse.Namespace)
scripts/run_with_beaker.py:22
↓ 1 callers
Function
main
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 callers
Function
process_paper_record
(paper_record, out_file, with_body)
scripts/build_pretrain_corpus.py:141
↓ 1 callers
Method
text_to_instance
(self, tokens: List[Token], pico_tags: List[str] = None)
scibert/dataset_readers/ebmnlp.py:64
↓ 1 callers
Method
text_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
Function
ci
(x)
scripts/compute_confidence_intervals.py:32
Function
compute_full_table
()
scripts/compute_confidence_intervals.py:113
Function
compute_table_1
(is_paired_ci: bool = False)
scripts/compute_confidence_intervals.py:52
Method
decode
(self, output_dict: Dict[str, torch.Tensor])
scibert/models/text_classifier.py:101
Method
decode
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
Method
forward
(self, tokens: Dict[str, torch.LongTensor], tags: torch.LongTensor = None,
scibert/models/pico_crf_tagger.py:63
Method
forward
(self, inputs: torch.Tensor, mask: torch.Tensor)
scibert/models/dummy_seq2seq.py:35
Method
forward
Parameters ---------- text : Dict[str, torch.LongTensor] From a ``TextField`` label : torch.IntTensor, op
scibert/models/text_classifier.py:55
Method
forward
Parameters ---------- text : Dict[str, torch.LongTensor] From a ``TextField`` label : torch.IntTensor, op
scibert/models/bert_text_classifier.py:51
Method
forward
Parameters ---------- tokens : ``Dict[str, torch.LongTensor]``, required The output of ``TextField.as_array()``,
scibert/models/bert_crf_tagger.py:129
Method
get_input_dim
(self)
scibert/models/dummy_seq2seq.py:23
Method
get_metrics
(self, reset: bool = False)
scibert/models/pico_crf_tagger.py:125
Method
get_metrics
(self, reset: bool = False)
scibert/models/text_classifier.py:106
Method
get_metrics
(self, reset: bool = False)
scibert/models/bert_crf_tagger.py:213
Method
is_bidirectional
(self)
scibert/models/dummy_seq2seq.py:31
Function
is_sentence
Checks if the string is an English sentence. :param sentence: spacy string :return: True / False
scripts/build_pretrain_corpus.py:114
Function
main
(in_filename, out_filename)
scripts/s2conll_to_conll2003.py:7
Function
main
(desc: str, not_dry_run: bool = False)
scripts/exp.py:16
Function
main
(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
Function
paired_ci
(baseline_scores, new_scores)
scripts/compute_confidence_intervals.py:44
Function
process
(job)
scripts/build_pretrain_corpus.py:50