From e5958f8b02cd6796ef01e37c92ca0cb1bbf3417d Mon Sep 17 00:00:00 2001 From: neurlang <77860779+neurlang@users.noreply.github.com> Date: Sat, 25 Jan 2025 14:08:50 +0100 Subject: [PATCH] add premodulo to restrict huge dataset impact --- repo/hashtron_phonemizer_repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo/hashtron_phonemizer_repo.go b/repo/hashtron_phonemizer_repo.go index f461279..9af1408 100644 --- a/repo/hashtron_phonemizer_repo.go +++ b/repo/hashtron_phonemizer_repo.go @@ -261,7 +261,7 @@ func (r *HashtronPhonemizerRepository) LoadLanguage(isReverse bool, lang string) //net.NewCombiner(majpool2d.MustNew2(fanout1*fanout2*fanout3*fanout4*fanout5*fanout6*fanout8, 1, fanout7, 1, fanout8, 1, 1, 0)) //net.NewLayerP(fanout1*fanout2*fanout3*fanout4*fanout5*fanout6, 0, 1<<(fanout6*fanout6*2/3)) //net.NewCombiner(majpool2d.MustNew2(fanout1*fanout2*fanout3*fanout4*fanout6, 1, fanout5, 1, fanout6, 1, 1, 0)) - net.NewLayer(fanout1*fanout2*fanout3*fanout4, 0) + net.NewLayerP(fanout1*fanout2*fanout3*fanout4, 0, 1<<13) net.NewCombiner(majpool2d.MustNew2(fanout1*fanout2*fanout4, 1, fanout3, 1, fanout4, 1, 1, 0)) net.NewLayer(fanout1*fanout2, 0) //net.NewCombiner(full.MustNew(fanout2, 1, 1))