Add co-occurrence analysis tool#8002
Open
ksuderman wants to merge 6 commits into
Open
Conversation
- Analyzes word co-occurrence relationships from NLP-annotated JSON - Multiple methods: sentence-level, sliding window, dependency-based - Works with spaCy, Stanza, or CoreNLP JSON output - Flexible filtering: POS tags, stop words, custom stop word lists - Term representation options: lemma, surface form, or lowercased - Output formats: TSV pair list and optional co-occurrence matrix - Pure Python implementation with no external dependencies - Comprehensive tests and documentation - Enables downstream network analysis and visualization Tool: cooccurrence_analysis (v1.0.0+galaxy0) Categories: Text Manipulation, Natural Language Processing Citation: Manning & Schütze - Foundations of Statistical NLP
- Analyzes word co-occurrence patterns from spaCy/Stanza JSON output - Supports both span-based and sentence-based co-occurrence analysis - Generates tabular output with co-occurrence frequencies and distances - Works with JSON output from both spaCy and Stanza NLP tools Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
- Analyzes word co-occurrence patterns from spaCy/Stanza JSON output - Supports both span-based and sentence-based co-occurrence analysis - Generates tabular output with co-occurrence frequencies and distances - Works with JSON output from both spaCy and Stanza NLP tools Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
bgruening
reviewed
May 20, 2026
| </assert_contents> | ||
| </output> | ||
| </test> | ||
| <test expect_num_outputs="1"> |
Member
There was a problem hiding this comment.
can we have one of those tests with all two outputs?
Author
|
Regarding the cooccurrence.py source: This implements standard co-occurrence algorithms from computational linguistics (sentence-level, sliding window, dependency-based). The implementation is original code written specifically for Galaxy to process spaCy/Stanza JSON outputs. The algorithms themselves are textbook NLP methods. |
- Update profile from 21.05 to 24.1 - Remove macros.xml and inline version - Fix repository URL to point to IUC repository - Convert test syntax to new conditional format - Add ftype attributes to test outputs - Add test with both outputs (pairs + matrix) - Add license comment to Python script
Author
|
Addressed all review comments |
Co-occurrence is a custom Galaxy tool without upstream project, so homepage_url should point to tools-iuc repository
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code