Helsinki-NLP / OPUS-MT-train

Training open neural machine translation models
MIT License
318 stars 40 forks source link

Improve platform independence by allowing missing languages in lib/data.mk #19

Closed Traubert closed 3 years ago

Traubert commented 4 years ago

In lib/data.mk, there is the possibility of fetching data with opus_read, but this is inside a if clause like this:

    elif [ -e ${OPUSHOME}/$$c/latest/xml/${LANGPAIR}.xml.gz ]; then \
          echo "extract $$c (${LANGPAIR}) from OPUS"; \
          opus_read ${OPUSREAD_ARGS} -rd ${OPUSHOME} -d $$c -s ${SRC} -t ${TRG} -wm moses -p raw > $@.tmp; \

So this could have a special case for missing data.

jorgtied commented 3 years ago

this should be fixed now