Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/allenai/SciREX
/ functions
Functions
614 in github.com/allenai/SciREX
⨍
Functions
614
◇
Types & classes
84
↳
Endpoints
2
↓ 2 callers
Method
reset
(self)
dygiepp/dygie/training/event_metrics.py:138
↓ 2 callers
Method
reset
(self)
dygiepp/dygie/training/joint_metrics.py:59
↓ 2 callers
Method
reset
(self)
scirex/metrics/n_ary_relation_metrics.py:73
↓ 2 callers
Function
span_match
(span_1, span_2)
dygiepp/scripts/clean_predictions.py:39
↓ 2 callers
Method
span_matches
(self, argument)
dygiepp/dygie/data/dataset_readers/data_structures.py:260
↓ 2 callers
Method
split_lex
Parses a lex attribute (might be nested) into a list of basic lex form (i.e., no nested lex)
dygiepp/scripts/data/genia/genia_xml_to_inline_sutd.py:278
↓ 1 callers
Method
__hash__
(self)
dygiepp/dygie/data/dataset_readers/data_structures.py:154
↓ 1 callers
Method
__init__
(self, missing_val, generator=None)
dygiepp/dygie/data/dataset_readers/ie_json.py:34
↓ 1 callers
Method
__repr__
(self)
dygiepp/scripts/data/genia/genia_xml_to_inline_sutd.py:127
↓ 1 callers
Function
_annotation_to_dict
(dc)
scirex_utilities/json_utilities.py:20
↓ 1 callers
Function
_annotation_to_dict
(dc)
scirex_utilities/entity_utils.py:54
↓ 1 callers
Function
_annotation_to_dict
(dc)
scirex_utilities/convert_brat_annotations_to_json.py:510
↓ 1 callers
Method
_assign_parent_indices
Give each coref the index of it parent in the list of corefs.
dygiepp/scripts/data/genia/merge_coref.py:128
↓ 1 callers
Method
_check_all_seen
(self)
dygiepp/scripts/data/ace-event/parse_ace_event.py:714
↓ 1 callers
Method
_cleanup_coref_clusters
Remove items that didn't get spans, don't have an allowed coref type, or weren't assigned a cluster
dygiepp/scripts/data/genia/merge_coref.py:163
↓ 1 callers
Method
_compute_antecedent_gold_labels
Generates a binary indicator for every pair of spans. This label is one if and only if the pair of spans belong to the same cluster.
dygiepp/dygie/models/coref.py:559
↓ 1 callers
Method
_compute_antecedent_gold_labels
(relation_labels: torch.IntTensor, coref_labels: torch.IntTensor)
scirex/models/relations/mention_binary_relation.py:177
↓ 1 callers
Method
_compute_argument_scores
(self, pairwise_embeddings, top_trig_scores, top_arg_scores, top_arg_mask, pr
dygiepp/dygie/models/events.py:543
↓ 1 callers
Method
_compute_auxiliary_loss
(self, cls_projected, trigger_labels, trigger_mask)
dygiepp/dygie/models/events.py:362
↓ 1 callers
Method
_compute_coreference_scores
Computes scores for every pair of spans. Additionally, a dummy label is included, representing the decision that the span is not core
dygiepp/dygie/models/coref.py:598
↓ 1 callers
Method
_compute_distance_embeddings
(self, top_trig_indices, top_arg_spans)
dygiepp/dygie/models/events.py:481
↓ 1 callers
Method
_compute_loss_for_scores
(self, ner_probs, ner_labels, metadata)
scirex/models/span_classifiers/span_classifier.py:75
↓ 1 callers
Method
_compute_representations_doc
Run the forward pass for a single document. Important: This function assumes that sentences are going to be passed in in sorted orde
dygiepp/dygie/models/coref.py:209
↓ 1 callers
Method
_compute_span_pair_embeddings
TODO(dwadden) document me and add comments.
dygiepp/dygie/models/relation.py:257
↓ 1 callers
Method
_compute_span_pair_embeddings
TODO(dwadden) document me and add comments.
scirex/models/relations/mention_binary_relation.py:156
↓ 1 callers
Method
_compute_trig_arg_embeddings
Create trigger / argument pair embeddings, consisting of: - The embeddings of the trigger and argument pair. - Optionally, th
dygiepp/dygie/models/events.py:402
↓ 1 callers
Method
_decode_arguments
(self, output, decoded_trig)
dygiepp/dygie/models/events.py:343
↓ 1 callers
Method
_decode_sentence
(self, top_spans, predicted_relations, num_spans_to_keep)
dygiepp/dygie/models/relation.py:235
↓ 1 callers
Method
_decode_trigger
(self, output)
dygiepp/dygie/models/events.py:334
↓ 1 callers
Function
_doc_bioul_to_spans
Given bioul predictions of one document, return entities in the span format
scirex_utilities/bioul_to_spans.py:6
↓ 1 callers
Method
_extract_spans
(self, output_dict: Dict[str, torch.Tensor])
scirex/models/ner/ner_crf_tagger.py:124
↓ 1 callers
Method
_flatten_coref_labels
Flatten the coref labels.
dygiepp/dygie/models/coref.py:668
↓ 1 callers
Method
_flatten_spans
Spans are input with each minibatch as a sentence. For coref, it's easier to flatten them out and consider all sentences together as
dygiepp/dygie/models/coref.py:647
↓ 1 callers
Method
_flatten_spans
Spans are input with each minibatch as a sentence. For coref, it's easier to flatten them out and consider all sentences together as
scirex/models/relations/mention_binary_relation.py:193
↓ 1 callers
Method
_generate_valid_antecedents
This method generates possible antecedents per span which survived the pruning stage. This procedure is `generic across the batch`. T
dygiepp/dygie/models/coref.py:448
↓ 1 callers
Method
_get_argument_loss
Compute cross-entropy loss on argument labels.
dygiepp/dygie/models/events.py:608
↓ 1 callers
Method
_get_coref_clusters
(corefs)
dygiepp/scripts/data/genia/merge_coref.py:138
↓ 1 callers
Method
_get_entry
(self, sent)
dygiepp/scripts/data/ace-event/parse_ace_event.py:707
↓ 1 callers
Method
_get_pruned_gold_arguments
Loop over each slice and get the labels for the spans from that slice. All labels are offset by 1 so that the "null" label gets class
dygiepp/dygie/models/events.py:578
↓ 1 callers
Method
_get_shared_attention_context
(self, pair_embeddings, text_emb, text_mask)
dygiepp/dygie/models/events.py:500
↓ 1 callers
Method
_get_span
Get text span of coref. We have inclusive endpoints.
dygiepp/scripts/data/genia/merge_coref.py:71
↓ 1 callers
Method
_get_trigger_loss
(self, trigger_scores, trigger_labels, trigger_mask)
dygiepp/dygie/models/events.py:600
↓ 1 callers
Method
_load_text
Load in text and strip out tags.
dygiepp/scripts/data/ace-event/parse_ace_event.py:377
↓ 1 callers
Method
_make_cluster_spans
Convert to nested list of cluster spans, as in scierc data.
dygiepp/scripts/data/genia/merge_coref.py:189
↓ 1 callers
Method
_make_nlp
Add a few special cases to spacy tokenizer so it works with ACe mistakes.
dygiepp/scripts/data/ace-event/parse_ace_event.py:294
↓ 1 callers
Method
_maybe_warn_for_namespace
(self, label_namespace: str)
dygiepp/dygie/data/fields/adjacency_field_assym.py:73
↓ 1 callers
Method
_maybe_warn_for_namespace
(self, label_namespace: str)
scirex/data/dataset_readers/multi_label_field.py:89
↓ 1 callers
Method
_order_instances
(instances)
scirex/data/iterators/batch_iterator.py:52
↓ 1 callers
Method
_populate_entity_list
(self)
dygiepp/scripts/data/ace-event/parse_ace_event.py:417
↓ 1 callers
Method
_populate_entity_lookup
(self)
dygiepp/scripts/data/ace-event/parse_ace_event.py:496
↓ 1 callers
Method
_populate_event_list
(self)
dygiepp/scripts/data/ace-event/parse_ace_event.py:499
↓ 1 callers
Method
_populate_relation_list
(self)
dygiepp/scripts/data/ace-event/parse_ace_event.py:555
↓ 1 callers
Method
_prune_spans
(self, spans, span_mask, span_embeddings, sentence_lengths)
dygiepp/dygie/models/relation.py:131
↓ 1 callers
Method
_read
(self, file_path: str)
scirex/data/dataset_readers/doctaet_reader.py:63
↓ 1 callers
Method
_score_arguments
(self, predicted_arguments, gold_arguments)
dygiepp/dygie/training/event_metrics.py:55
↓ 1 callers
Method
_score_triggers
(self, predicted_triggers, gold_triggers)
dygiepp/dygie/training/event_metrics.py:45
↓ 1 callers
Method
_sentence_get_events
(self, sent)
dygiepp/scripts/data/ace-event/parse_ace_event.py:685
↓ 1 callers
Method
_sentence_get_ner
(self, sent)
dygiepp/scripts/data/ace-event/parse_ace_event.py:638
↓ 1 callers
Method
_sentence_get_relations
(self, sent)
dygiepp/scripts/data/ace-event/parse_ace_event.py:666
↓ 1 callers
Method
_shuffle_documents
Randomly permute the documents for each batch
dygiepp/dygie/data/iterators/batch_iterator.py:41
↓ 1 callers
Method
_shuffle_documents
Randomly permute the documents for each batch
scirex/data/iterators/batch_iterator.py:34
↓ 1 callers
Function
add_rows_to_files
(row, txt_file, ann_file)
scirex_utilities/convert_pwc_to_brat.py:60
↓ 1 callers
Function
add_rows_to_files
(document, txt_file, ann_file)
scirex_utilities/convert_predictions_to_brat.py:46
↓ 1 callers
Method
adjust
(self, tok)
dygiepp/scripts/data/ace-event/parse_ace_event.py:168
↓ 1 callers
Method
align
(self)
dygiepp/scripts/data/ace-event/parse_ace_event.py:150
↓ 1 callers
Function
annotations_to_jsonl
(annotations, output_file, key="doc_id")
scirex_utilities/json_utilities.py:40
↓ 1 callers
Function
batched_bioul_to_span_tesnors
Given bioul predictions of a list of documents, return three tensors, spans, span labels, and mask
scirex_utilities/bioul_to_spans.py:21
↓ 1 callers
Function
break_paragraphs
(plist, max_len=400)
scirex/data/utils/paragraph_alignment.py:29
↓ 1 callers
Function
check_lengths
Make sure all entries in dict have same length.
dygiepp/dygie/commands/predict_dygie_whole_doc.py:118
↓ 1 callers
Function
check_lengths
Make sure all entries in dict have same length.
dygiepp/dygie/commands/predict_dygie.py:118
↓ 1 callers
Function
clean
(text)
scirex_utilities/preprocessing/add_cleaned_text_to_pwc.py:42
↓ 1 callers
Function
clean
(text)
scirex_utilities/preprocessing/latex_to_plain_text.py:13
↓ 1 callers
Function
clean_gold
(json_dict)
dygiepp/scripts/clean_predictions.py:9
↓ 1 callers
Function
clean_json_dict
(json_dict)
scirex/data/dataset_readers/scirex_full_reader.py:32
↓ 1 callers
Function
clean_json_dict
(json_dict)
scirex/data/dataset_readers/doctaet_reader.py:28
↓ 1 callers
Function
cleanup
(k, decoded, sentence_starts)
dygiepp/dygie/commands/predict_dygie.py:41
↓ 1 callers
Function
cluster_dict_sentence
Split cluster dict into clusters in current sentence, and clusters that come later.
dygiepp/dygie/data/dataset_readers/ie_json.py:51
↓ 1 callers
Function
cluster_with_clustering
(matrix, threshold, plot=True)
scirex/models/clustering/clustering.py:17
↓ 1 callers
Function
clustering_metrics
(gold_data, predicted_clusters, span_map)
scirex/evaluation_scripts/scirex_relation_evaluate.py:39
↓ 1 callers
Function
collapse_paragraphs
(plist, min_len=100, max_len=400)
scirex/data/utils/paragraph_alignment.py:10
↓ 1 callers
Method
collect_losses
(self, output_docs)
dygiepp/dygie/models/coref.py:188
↓ 1 callers
Function
combine_brat_to_original_data
( pwc_doc_file, pwc_sentence_file, pwc_prediction_file, original_brat_anno_folder, annotat
scirex_utilities/convert_brat_annotations_to_json.py:388
↓ 1 callers
Function
combine_same_doc_instances
(instances)
dygiepp/scripts/dygie_results_in_scirex_format.py:17
↓ 1 callers
Function
combine_span_and_cluster_file
(span_file, cluster_file)
scirex/predictors/predict_n_ary_relations.py:23
↓ 1 callers
Function
compare
(str1, str2)
dygiepp/scripts/data/genia/align_articles.py:69
↓ 1 callers
Function
compare_brat_annotations
(ann_old_df, ann_new_df)
scirex_utilities/convert_brat_annotations_to_json.py:340
↓ 1 callers
Function
compare_true_and_predicted_field
(pwc_df, pwc_sentences, true_field, predicted_field, comparison_method)
scirex_utilities/analyse_pwc_entity_results.py:90
↓ 1 callers
Method
compute_representations
(self, # type: ignore spans: torch.IntTensor,
dygiepp/dygie/models/relation.py:105
↓ 1 callers
Function
compute_threshold
(predicted_scores: np.ndarray, gold: np.ndarray, bins: int = 100)
scirex/metrics/f1.py:22
↓ 1 callers
Method
contains
(self, ann2)
dygiepp/scripts/data/genia/genia_xml_to_inline_sutd.py:103
↓ 1 callers
Function
convert_all_instances
(instances)
dygiepp/scripts/dygie_results_in_scirex_format.py:29
↓ 1 callers
Function
convert_instance
(instance, start)
dygiepp/scripts/dygie_results_in_scirex_format.py:12
↓ 1 callers
Function
convert_scirex_instance_to_scierc_format
(instance)
scirex/data/utils/scirex_to_scierc_format.py:17
↓ 1 callers
Function
convert_scirex_to_scierc_format
(file, output_file, abstract)
scirex/data/utils/scirex_to_scierc_format.py:69
↓ 1 callers
Function
convert_to_sentences
(doc_id, text, clean_type)
scirex_utilities/preprocessing/process_pwc_to_sentences.py:10
↓ 1 callers
Method
coref_propagation
(self, output_dict)
dygiepp/dygie/models/coref.py:111
↓ 1 callers
Method
coref_propagation_doc
(self, output_dict)
dygiepp/dygie/models/coref.py:116
↓ 1 callers
Function
create_matches
Create a dataset mapping the ner id's to the coref id's and vice versa.
dygiepp/scripts/data/genia/align_articles.py:62
↓ 1 callers
Function
decode
Largely copy-pasted from what happens in dygie.
dygiepp/dygie/commands/predict_from_ensemble.py:78
↓ 1 callers
Function
decode
Largely copy-pasted from what happens in dygie.
dygiepp/dygie/commands/predict_from_pair.py:49
← previous
next →
101–200 of 614, ranked by callers