Changed test to use pool trainer
This commit is contained in:
parent
1eae8582b2
commit
2194cc7b4f
@ -4,13 +4,13 @@ import Project_Model.Libs.BPE as BPE
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
CACHE_DIR_PATH = Path("Project_Model/Tests/trainer_files/cache")
|
CACHE_DIR_PATH = Path("Project_Model/Tests/trainer_files/cache/pool-cache.json")
|
||||||
|
|
||||||
class TestTrainBPE:
|
class TestTrainBPE:
|
||||||
|
|
||||||
def test_bpe_train_encoding_simple(self):
|
def test_bpe_train_encoding_simple(self):
|
||||||
|
|
||||||
TRAINER = BPE.NanoSocraTrainer(
|
TRAINER = BPE.NanoSocraTrainerPool(
|
||||||
int(32E3),
|
int(32E3),
|
||||||
["<SOT>", "<EOT>"],
|
["<SOT>", "<EOT>"],
|
||||||
40
|
40
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user