# ****************************************************************** # # This is a makefile that builds the training morphological parser 1 # # ****************************************************************** # XFST = xfst #-utf8 LEXC = lexc #-utf8 TWOLC = twolc #-utf8 ismn.fst: smn.fst @echo @echo "*** Building the inverse smn.fst ***" ; @echo printf "load smn.fst \n\ invert net \n\ save stack ismn.fst \n\ quit \n" > if-fst-script $(XFST) < if-fst-script rm -f if-fst-script smn.fst: smn.lexc smn.bin @echo @echo "*** Building smn.fst ***" ; @echo printf "compile-source smn.lexc \n\ read-rules smn.bin \n\ compose-result \n\ save-result smn.fst \n\ quit \n" > f-fst-script $(LEXC) < f-fst-script rm -f f-fst-script smn.bin: smn.twolc @echo @echo "*** Building smn.bin ***" ; @echo @printf "read-grammar smn.twolc \n\ compile \n\ save-binary smn.bin \n\ quit \n" > f-bin-script $(TWOLC) < f-bin-script @rm -f f-bin-script clean: @rm -f smn.bin smn.fst ismn.fst