Skip to content

Commit

Permalink
add configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Feb 19, 2024
1 parent 0d5ed05 commit 8ce33a5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configs/metric/count_relation_argument_distances.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_target_: src.metrics.statistics.RelationArgumentDistanceCollector
title: Relation argument (outer) character distances
layer: relations
distance_type: outer
show_histogram: true
show_as_markdown: true
document_type: pytorch_ie.documents.TextDocumentWithLabeledEntitiesAndRelations
12 changes: 12 additions & 0 deletions configs/metric/count_relation_argument_token_distances.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
_target_: src.metrics.statistics.RelationArgumentDistanceCollector
title: Relation argument (outer) token distances
layer: relations
distance_type: outer
tokenize: true
tokenizer: bert-base-uncased
# tokenize_kwargs:
# strict_span_conversion: false
tokenized_document_type: src.document.types.TokenDocumentWithLabeledEntitiesAndRelations
show_histogram: true
show_as_markdown: true
document_type: pytorch_ie.documents.TextDocumentWithLabeledEntitiesAndRelations

0 comments on commit 8ce33a5

Please sign in to comment.