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 tok2vec-less textcat generation in website quickstart #9610

Conversation

adrianeboyd
Copy link
Contributor

@adrianeboyd adrianeboyd commented Nov 3, 2021

Description

Something is going wrong with the expression conversion or evaluation on the javascript side, but separating the expression into smaller components seems to at least temporarily fix the problem.

Types of change

?

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

@almeidava93
Copy link

almeidava93 commented Jan 10, 2023

Hi!
I've got the same error here described, but with span categorisation. I didn't find yet a workaround. It doens't work, no matter if I use the pt_core_news_sm model or the pt_core_news_lg model. It seems to be related to tok2vec.

✘ Config validation error Bad value substitution: option 'width' in section 'components.spancat.model.tok2vec' contains an interpolation key 'components.tok2vec.model.encode.width' which is not a valid option name. Raw value: '${components.tok2vec.model.encode.width}'

Here is my code in the CLI:
python -m prodigy train models/spancat_rfe --base-model pt_core_news_lg --spancat test_3 --lang pt -V --config models\spancat_rfe.cfg

If I just remove tok2vec from the pipeline at the base-config.cfg file, I get another error:
✘ Config validation error Bad value substitution: option 'seed' in section 'training' contains an interpolation key 'system:seed' which is not a valid option name. Raw value: '${system:seed}'

I would appreciate some help with this. Thanks!

@adrianeboyd
Copy link
Contributor Author

Hi @almeidava93 , an older/closed spacy PR isn't the best place for a new prodigy question. Since it's probably related to how prodigy is generating the spancat config internally, can you open a new thread in the prodigy support forum instead (https://support.prodi.gy)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation and website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Config initialization] Config validation error: Bad value substitution with tok2vec component's width
2 participants