-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Fix/update pipelines #230
Conversation
✅ Deploy Preview for embeddingsclarinpl canceled.
|
5c0bee2
to
b182ae7
Compare
f5fcbd7
to
9572f26
Compare
9572f26
to
6d18471
Compare
bd58aa4
to
d902d26
Compare
|
||
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: |
There was a problem hiding this comment.
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
No description provided.