Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitextor/bicleaner-ai.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZJaume <jzaragoza@prompsit.com>2022-03-02 18:29:16 +0300
committerZJaume <jzaragoza@prompsit.com>2022-03-02 18:29:16 +0300
commit7eaf609c6504f884eb32061d09ec5658b19f0453 (patch)
treec6240e6594fb0d328f4b97150d46cb8866ac0e93
parentcdc27e587f8c90ec908e1610047ac561ece6808d (diff)
Use empty string for user_defined symbols as default
None was being included in the vocab as a piece
-rw-r--r--bicleaner_ai/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bicleaner_ai/models.py b/bicleaner_ai/models.py
index 902a648..0f2c914 100644
--- a/bicleaner_ai/models.py
+++ b/bicleaner_ai/models.py
@@ -149,7 +149,7 @@ class BaseModel(ModelInterface):
"vocab_file": self.spm_prefix + ".vocab",
"model_file": "model.h5",
"wv_file": "glove.vectors",
- "separator": None,
+ "separator": '',
"bos_id": -1,
"eos_id": -1,
"pad_id": 0,