Skip to content

Commit

Permalink
some comments to show how to install morfette in one's own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
djame.seddah committed Feb 17, 2010
1 parent 941a8da commit 0b29f50
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
defaults: all





#program name
MORFETTE=../src/dist/build/morfette/morfette

Expand All @@ -17,8 +20,8 @@ DEVSET=${PREF}/ftb_2.pos.utf8.morpheteready
GOLDSET=${PREF}/ftb_3.pos.utf8.morpheteready

LEXICON=${TRAINDATADIR}/lexicon/lexicon.ftb4.4morfette.csv
ITERPOS=5
ITERLEMMA=2
ITERPOS=10
ITERLEMMA=3
MODELNAME=${PREF}/${TYPE}.${ITERPOS}x${ITERLEMMA}.model

all: configure build
Expand All @@ -27,15 +30,28 @@ all: configure build
check: train eval_dev



# note that if you want to install in your own home directory
# add a --prefix=DIRTOINSTALL option right after the --user
# as in
# runghc Setup.lhs configure --user --prefix=/home/foo/bar
# the install target will then install the morfette compiled binary
# in /home/foo/bar/bin (bin must exist)

configure:
runghc Setup.lhs configure --user


build: configure
runghc Setup.lhs build

install:
install: configure build
runghc Setup.lhs install


install_home:


clean:
runghc Setup.lhs clean

Expand All @@ -50,8 +66,8 @@ train:


eval_dev:
${MORFETTE} predict ${MODELNAME} < ${DEVSET} > ${DEVSET}.tagged
${MORFETTE} eval --ignore-case ${TRAINSET} ${DEVSET} ${DEVSET}.tagged |\
#${MORFETTE} predict ${MODELNAME} < ${DEVSET} > ${DEVSET}.tagged
${MORFETTE} eval --ignore-case /dev/null ${DEVSET} ${DEVSET}.tagged |\
tee ${DEVSET}.tagged.result.${TYPE}.${ITERPOS}x${ITERLEMMA}.model


Expand Down

0 comments on commit 0b29f50

Please sign in to comment.