Skip to content

Commit

Permalink
add rule sentlink.n for parallel texts
Browse files Browse the repository at this point in the history
  • Loading branch information
anne17 committed Jun 29, 2018
1 parent 078f256 commit 9e1e19c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions makefiles/Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,8 @@ $(foreach otherlang,$(aligned_languages),$(eval $(call run_other_language,$(othe
%.sentlink.random: %.sentlink $(foreach l,$(aligned_languages),$(parallel_base)-$(l)/annotations/$$(subst $(root)annotations/,,$$*).sentlink)
$(python) -m sparv.number --shuffle --out $@ --chunks "$+" --prefix $(subst $(root)annotations/,,$*.)

%.sentlink.n: %.@TEXT %.sentlink $(foreach l,$(aligned_languages),$(parallel_base)-$(l)/annotations/$$(subst $(root)annotations/,,$$*).@TEXT) $(foreach l,$(aligned_languages),$(parallel_base)-$(l)/annotations/$$(subst $(root)annotations/,,$$*).sentlink)
$(python) -m sparv.number --position --out $@ --texts "$(filter-out %.sentlink,$+)" --chunks "$(filter-out %.@TEXT,$+)" --prefix $(subst $(root)annotations/,,$*.)

################################################################################
# HELP #
Expand Down

0 comments on commit 9e1e19c

Please sign in to comment.