Skip to content

Commit

Permalink
move weighting out of relabelling rules?
Browse files Browse the repository at this point in the history
  • Loading branch information
flammie committed Aug 26, 2024
1 parent e65408c commit 379355a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tools/mt/apertium/Makefile.modifications.am
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ endif
$(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) \
.generated/generator-mt-apertium-norm.hfst: \
.generated/generator-mt-apertium-norm.tmp.hfst
$(AM_V_REWEIGHT)$(HFST_FST2FST) $(HFSTFLAGS) -t $< \
| $(HFST_REWEIGHT) $(MORE_VERBOSITY) $(HFST_FLAGS) \
-S '-' -a 10 --arcs-only -i $< -o $@

# Relabel Giella tags to Apertium tags - generator, step 1:
Expand All @@ -81,10 +82,15 @@ 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 $@

.generated/generator-mt-apertium-norm_North.hfst: \
.generated/generator-mt-apertium-norm_North.tmp.hfst
$(AM_V_REWEIGHT)$(HFST_FST2FST) $(HFSTFLAGS) -t $< \
| $(HFST_REWEIGHT) $(MORE_VERBOSITY) $(HFST_FLAGS) \
-S '-' -a 10 --arcs-only -i $< -o $@


# Relabel Giella tags to Apertium tags - generator, step 2c:
# * general tag change regex file ONLY
.generated/generator-mt-apertium-norm_North.%.hfst: \
Expand Down

0 comments on commit 379355a

Please sign in to comment.