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

Deeppavlov fixes #1481

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Open

Deeppavlov fixes #1481

wants to merge 11 commits into from

Conversation

dimakarp1996
Copy link
Contributor

@dimakarp1996 dimakarp1996 commented Aug 25, 2021

  1. Added tqdm in trainer
  2. Added handling separate-class labels as float labels if specified
  3. Addled handling quotes while reading dataset if specified

@dimakarp1996 dimakarp1996 changed the title WIP Deeppavlov fixes Deeppavlov fixes Aug 25, 2021
@IgnatovFedor IgnatovFedor changed the base branch from master to dev February 15, 2022 14:32
@@ -465,7 +465,7 @@ def flatten_str_batch(batch: Union[str, Iterable]) -> Union[list, chain]:
['a', 'b', 'c', 'd']

"""
if isinstance(batch, str):
if isinstance(batch, str) or isinstance(batch, str) or isinstance(batch, int) or isinstance(batch, float):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Twice str is mentioned.
Consider replacing isinstance with type.

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.

None yet

3 participants