Skip to content

fix: use hypernym in which_look_like Hearst pattern#623

Open
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/hearst-which-look-like-hypernym
Open

fix: use hypernym in which_look_like Hearst pattern#623
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/hearst-which-look-like-hypernym

Conversation

@Chessing234

Copy link
Copy Markdown

Problem

In scispacy/hearst_patterns.py, the which_look_like "last"-position pattern ended with hyponym instead of hypernym. Every other "position": "last" pattern (including the structurally identical which_sound_like right below it) ends with hypernym, so this was a copy-paste slip that made the pattern extract the wrong term as the hypernym.

Fix

Change the final token in the which_look_like pattern from hyponym to hypernym.

Fixes #595.

Made with Cursor

The which_look_like 'last'-position pattern ended with hyponym instead
of hypernym, unlike the structurally identical which_sound_like pattern.
Fixes allenai#595.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: which_look_like Hearst pattern uses hyponym twice instead of hypernym

1 participant