Skip to content

Commit

Permalink
always re-apply hyphen weight
Browse files Browse the repository at this point in the history
  • Loading branch information
flammie committed Aug 20, 2024
1 parent b956ffe commit 169c636
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/mt/apertium/Makefile.modifications.am
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ endif
-o $@
$(AM_V_at)rm -f $<.tmp

# re-apply extra hyphen weight just in case and for foma
.generated/generator-mt-apertium-norm.tmp.hfst: \
.generated/generator-mt-apertium-norm.tmp1.hfst
$(AM_V_HREWGT)$(HFST_REWEIGHT) $(MORE_VERBOSITY) $(HFST_FLAGS) \
-S '-' -a 10 --arcs-only -i $< -o $@

# Relabel Giella tags to Apertium tags - generator, step 1:
.generated/generator-mt-apertium-norm_North.tmp1.hfst: \
../generator-mt-gt-norm_North.hfst \
Expand All @@ -75,6 +81,8 @@ endif
$(AM_V_HSUBST)$(HFST_SUBSTITUTE) $(HFSTFLAGS) -i $< \
-F tagsets/apertium.relabel \
| $(HFST_FST2FST) $(HFSTFLAGS) -t \
| $(HFST_REWEIGHT) $(MORE_VERBOSITY) $(HFST_FLAGS) \
-S '-' -a 10 --arcs-only \
-o $@

# Relabel Giella tags to Apertium tags - generator, step 2c:
Expand Down

0 comments on commit 169c636

Please sign in to comment.