Skip to content

Comments

Fix/update pipelines#230

Draft
ktagowski wants to merge 6 commits intomainfrom
fix/update-pipelines
Draft

Fix/update pipelines#230
ktagowski wants to merge 6 commits intomainfrom
fix/update-pipelines

Conversation

@ktagowski
Copy link
Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Apr 19, 2022

Deploy Preview for embeddingsclarinpl canceled.

Name Link
🔨 Latest commit d902d26
🔍 Latest deploy log https://app.netlify.com/sites/embeddingsclarinpl/deploys/625fe960bb31c700084a6e4d

@ktagowski ktagowski force-pushed the fix/update-pipelines branch from 5c0bee2 to b182ae7 Compare April 19, 2022 12:57
@ktagowski ktagowski temporarily deployed to Test deployment April 19, 2022 14:06 Inactive
@ktagowski ktagowski force-pushed the fix/update-pipelines branch 3 times, most recently from f5fcbd7 to 9572f26 Compare April 19, 2022 15:31
@ktagowski ktagowski temporarily deployed to Test deployment April 19, 2022 16:14 Inactive
@ktagowski ktagowski force-pushed the fix/update-pipelines branch from 9572f26 to 6d18471 Compare April 19, 2022 16:36
@ktagowski ktagowski temporarily deployed to Test deployment April 19, 2022 17:27 Inactive
@ktagowski ktagowski temporarily deployed to Test deployment April 19, 2022 20:16 Inactive
ktagowski and others added 2 commits April 20, 2022 12:47
@ktagowski ktagowski force-pushed the fix/update-pipelines branch from bd58aa4 to d902d26 Compare April 20, 2022 11:07
@ktagowski ktagowski temporarily deployed to Test deployment April 20, 2022 11:45 Inactive

transformation = self._get_dataset_transformation(data_loader)
transformation: FLAIR_DATASET_TRANSFORMATIONS_TYPE = DummyTransformation()
if self.encode_labels:
Copy link
Collaborator

Choose a reason for hiding this comment

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

consider early exit, without extra nested if?
if self.encode_labels and isinstance(data_loader, (ConllFlairCorpusDataLoader, PickleFlairCorpusDataLoader)):
raise ValueError(
"ClassEncodeColumnTransformation transformation is unavailable for Flair DataLoaders. "
"Set parameter encode_labels value to True"
)
transformation= transformation.then(
ClassEncodeColumnTransformation(column=self.target_column_name)
) if self.encode_labels else transformation

@ktagowski ktagowski marked this pull request as draft February 8, 2023 22:31
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.

3 participants