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

User Warning , grouped_entities=False #10

Closed
leinaxd opened this issue Dec 15, 2022 · 1 comment · Fixed by #12
Closed

User Warning , grouped_entities=False #10

leinaxd opened this issue Dec 15, 2022 · 1 comment · Fixed by #12

Comments

@leinaxd
Copy link

leinaxd commented Dec 15, 2022

I followed your tutorial and works great!
however i get the following Warning coming from hugging face pipeline:

/usr/local/lib/python3.8/dist-packages/transformers/pipelines/token_classification.py:159: UserWarning: `grouped_entities` is deprecated and will be removed in version v5.0.0, defaulted to `aggregation_strategy="none"` instead.
  warnings.warn(

Here is the required doc:
Hugging Face pipeline

And the line of code to change is:
From the PunctuationModel (inside the __init__ method...) both pipeline() calls

Would you consider updating those lines in order to get rid of the warning?
Thank you in advance!

@oliverguhr
Copy link
Owner

Thanks for the PR @leinaxd. I will merge this as soon as I tested it.

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 a pull request may close this issue.

2 participants