From a864f6469d6337f86081b1df428c7e755023394d Mon Sep 17 00:00:00 2001 From: Sjur N Moshagen Date: Wed, 29 May 2024 15:45:37 +0300 Subject: [PATCH] Print out max and min tropical weights as well --- .../tools-spellcheckers-fstbased-desktop_weights-dir-include.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/am-shared/tools-spellcheckers-fstbased-desktop_weights-dir-include.am b/am-shared/tools-spellcheckers-fstbased-desktop_weights-dir-include.am index 5742c771..de0d64b5 100644 --- a/am-shared/tools-spellcheckers-fstbased-desktop_weights-dir-include.am +++ b/am-shared/tools-spellcheckers-fstbased-desktop_weights-dir-include.am @@ -106,6 +106,8 @@ corpus_size_limit_command=$(shell \ .generated/unitweighted.hfst: $(UW_SPELLER_SRC) \ .generated/$(UNITWEIGHT) @echo "" + @echo "*** Weight for most frequent corpus wordform: $$(head -1 .generated/*.tropical.txt)" + @echo "*** Weight for least frequent corpus wordform: $$(tail -n -1 .generated/*.tropical.txt)" @echo "*** Default weight for out-of-corpus wordforms: $$(cat .generated/$(UNITWEIGHT))" @echo "" $(AM_V_REWEIGHT)$(HFST_FST2FST) --format=openfst-tropical -i $< \