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/update pipelines #230

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Fix/update pipelines #230

wants to merge 6 commits into from

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 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 temporarily deployed to Test deployment April 19, 2022 17:27 Inactive
@ktagowski ktagowski temporarily deployed to Test deployment April 19, 2022 20:16 Inactive
embeddings/pipeline/flair_hps_pipeline.py Outdated Show resolved Hide resolved
embeddings/pipeline/flair_preprocessing_pipeline.py Outdated Show resolved Hide resolved
@ktagowski ktagowski temporarily deployed to Test deployment April 20, 2022 11:45 Inactive

def _get_transformations(
self, data_loader: FLAIR_DATALOADERS
) -> FLAIR_DATASET_TRANSFORMATIONS_TYPE:

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.

None yet

3 participants