Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add span coverage metric configs again #160

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading