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

Fix aggregate_contiguous #247

Merged
merged 2 commits into from
Jan 12, 2024
Merged

Fix aggregate_contiguous #247

merged 2 commits into from
Jan 12, 2024

Conversation

gsarti
Copy link
Member

@gsarti gsarti commented Jan 12, 2024

Description

Fixes the aggregate_contiguous function used by ContiguousSpanAggregator and SubwordAggregator classes in the edge case of single-step generation described by #246. Also adjusts the function behavior to avoid unnecessary transpositions and squeeze/unsqueeze operations whenever possible.

@gsarti gsarti merged commit 7503576 into main Jan 12, 2024
3 checks passed
@gsarti gsarti deleted the fix-span-aggregation branch January 12, 2024 17:08
gsarti added a commit that referenced this pull request Jan 13, 2024
* origin:
  Fix `aggregate_contiguous` (#247)
  `attribute-context` CLI command (#237)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Producing heatmap visualizations with SubwordAggregator and SequenceAttributionAggregator
1 participant