Skip to content

Update cardinality_rule parameter for RegexGenerator and AnonymizedFaker #980

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
3 changes: 2 additions & 1 deletion rdt/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
OptimizedTimestampEncoder,
UnixTimestampEncoder,
)
from rdt.transformers.id import IDGenerator, RegexGenerator
from rdt.transformers.id import IDGenerator, IndexGenerator, RegexGenerator
from rdt.transformers.null import NullTransformer
from rdt.transformers.numerical import (
ClusterBasedNormalizer,
Expand Down Expand Up @@ -57,6 +57,7 @@
'AnonymizedFaker',
'PseudoAnonymizedFaker',
'IDGenerator',
'IndexGenerator',
'get_transformer_name',
'get_transformer_class',
'get_transformers_by_type',
Expand Down
4 changes: 2 additions & 2 deletions rdt/transformers/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class UniformEncoder(BaseTransformer):
"""

INPUT_SDTYPE = 'categorical'
SUPPORTED_SDTYPES = ['categorical', 'boolean']
SUPPORTED_SDTYPES = ['categorical', 'boolean', 'id', 'text']
frequencies = None
intervals = None
dtype = None
Expand Down Expand Up @@ -733,7 +733,7 @@ class LabelEncoder(BaseTransformer):
"""

INPUT_SDTYPE = 'categorical'
SUPPORTED_SDTYPES = ['categorical', 'boolean']
SUPPORTED_SDTYPES = ['categorical', 'boolean', 'id', 'text']
values_to_categories = None
categories_to_values = None
dtype = 'O'
Expand Down
Loading
Loading