Skip to content

Commit

Permalink
fix: rename registry.py to fix class finding when pickling
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed Jan 5, 2024
1 parent 49539c0 commit 6d842c7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion edsnlp/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .registry import registry
from .registries import registry
from .pipeline import PipelineProtocol
File renamed without changes.
2 changes: 1 addition & 1 deletion edsnlp/patch_spacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from spacy.util import SimpleFrozenDict, SimpleFrozenList, raise_error
from spacy.vocab import create_vocab

from edsnlp.core.registry import accepted_arguments
from edsnlp.core.registries import accepted_arguments


@classmethod
Expand Down
2 changes: 1 addition & 1 deletion edsnlp/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import edsnlp
from edsnlp.core.pipeline import Pipeline
from edsnlp.core.registry import registry
from edsnlp.core.registries import registry
from edsnlp.optimization import LinearSchedule, ScheduledOptimizer
from edsnlp.pipes.trainable.embeddings.transformer.transformer import Transformer
from edsnlp.scorers import Scorer
Expand Down
2 changes: 1 addition & 1 deletion tests/training/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from confit.utils.random import set_seed
from spacy.tokens import Span

from edsnlp.core.registry import registry
from edsnlp.core.registries import registry
from edsnlp.data.converters import AttributesMappingArg, get_current_tokenizer
from edsnlp.train import GenericScorer, Reader, train
from edsnlp.utils.span_getters import SpanSetterArg, set_spans
Expand Down

0 comments on commit 6d842c7

Please sign in to comment.