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

Updated few code files which had few typos and errors in the code. #134

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vignesh1507
Copy link

@vignesh1507 vignesh1507 commented Oct 4, 2024

#133 resolved

error:

Incorrect pipe name (textcat_multilabel): By default, SpaCy's TextCategorizer pipeline is called textcat, not textcat_multilabel. You need to ensure that you have installed and are using a specific multi-label classification pipeline or that you're setting it up correctly. If you're aiming to use multi-label classification, consider handling it via textcat and properly setting multi-label categorization in your training data.


changes that i have made to the code:

textcat: Replaced textcat_multilabel with textcat.

Fixed random seed: Removed spacy.util.fix_random_seed and just used random.seed.

Vocabulary filtering: Added isalpha() check for vocabulary words to ensure only alphabetic words are saved.

Ensure you have the spacy-textcat component installed for multi-label text categorization.
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