Skip to content

Commit 04eaa9f

Browse files
committed
fix: set config kwargs to None
1 parent e4509f3 commit 04eaa9f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

botok/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ class Config:
6363
- Contains all the data required to adjust the text segmentation rules.
6464
"""
6565

66-
def __init__(self, dialect_name=DEFAULT_DIALECT_PACK, base_path=DEFAULT_BASE_PATH):
66+
def __init__(self, dialect_name=None, base_path=None):
6767
"""Create config for given `dialect_name` and stored in `base_path`"""
68+
if not dialect_name:
69+
dialect_name = DEFAULT_DIALECT_PACK
70+
if not base_path:
71+
base_path = DEFAULT_BASE_PATH
6872
dialect_pack_path = get_dialect_pack(dialect_name, base_path)
6973
self.reset(dialect_pack_path)
7074

0 commit comments

Comments
 (0)