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

Remove redundant lemmas found with clean.sh #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

goodmami
Copy link
Collaborator

@goodmami goodmami commented Feb 2, 2025

Also add files that log the changes made.

This removes redundant lemmas with the following procedure:

  1. Normalize the lemma
    a. Strip quote pairs at the beginning and end of the lemma
    b. Replace each underscore in a lemma with a single space
    c. Strip any spaces at the beginning and end of the lemma
    d. Store the normalized form if it differs from the original
  2. Remove Redundancies: If multiple lemmas with the same synset identifier (offset + pos) and lemma type (e.g., fra:lemma) are the same string after normalization, only one is kept.
  3. Log Changes: Write a log indicating which lemmas have been REMOVED or MODIFIED. Wordnets without a log file did not have any changes.

Also note:

Also add files that log the changes made.
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.

1 participant