Skip to content

Commit

Permalink
add span coverage metric configs again (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder authored Mar 6, 2024
1 parent c1cdfb0 commit 0fd1279
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configs/metric/span_coverage_characters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# example call:
# python src/evaluate_documents.py dataset=conll2003 metric=span_coverage_characters

_target_: pie_modules.metrics.SpanCoverageCollector
title: span coverage (characters)
layer: labeled_spans
show_histogram: true
show_as_markdown: true
document_type: pie_modules.documents.TextDocumentWithLabeledSpans
15 changes: 15 additions & 0 deletions configs/metric/span_coverage_tokens.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# example call:
# python src/evaluate_documents.py dataset=conll2003 metric=span_coverage_tokens

_target_: pie_modules.metrics.SpanCoverageCollector
title: span coverage (tokens)
layer: labeled_spans
tokenize: true
tokenizer: bert-base-uncased
tokenize_kwargs:
add_special_tokens: false
# strict_span_conversion: false
tokenized_document_type: pie_modules.documents.TokenDocumentWithLabeledSpans
show_histogram: true
show_as_markdown: true
document_type: pie_modules.documents.TextDocumentWithLabeledSpans

0 comments on commit 0fd1279

Please sign in to comment.