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

Add deprecation warning for SentenceDataset rename #2819

Merged

Conversation

Lingepumpe
Copy link
Contributor

With 0.11, SentenceDataset was renamed to FlairDatapointDataset. There was
no deprecation or fall-back, this code adds the deprecation fallback with
a message to guide users to the new class name.

Alternatively, the deprecation could also be removed, allowing the
SentenceDataset class to continue without warning.

With 0.11, SentenceDataset was renamed to FlairDatapointDataset. There was
no deprecation or fall-back, this code adds the deprecation fallback with
a message to guide users to the new class name.

Alternatively, the deprecation could also be removed, allowing the
SentenceDataset class to continue.
@alanakbik
Copy link
Collaborator

@Lingepumpe thanks for fixing this! A deprecation fallback definitely makes sense, perhaps even as you write keeping the SentenceDataset object for convenience without deprecation note. I'll merge as-is and think about removing the deprecation note.

@alanakbik alanakbik merged commit 16b3df1 into flairNLP:master Jun 17, 2022
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.

2 participants