Skip to content

Commit

Permalink
Print out max and min tropical weights as well
Browse files Browse the repository at this point in the history
  • Loading branch information
snomos committed May 29, 2024
1 parent ad67649 commit a864f64
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 $< \
Expand Down

0 comments on commit a864f64

Please sign in to comment.