mssammon|csil-mm24|/scratch/tutorial/preprocessing|[1]% ls fex/ install_tools.script README HONORIFICS install_tools.script~ sentence-boundary.pl* install_pos.script pos-tagger/ word-splitter.pl mssammon|csil-mm24|/scratch/tutorial/preprocessing|[2]% cd pos-tagger mssammon|csil-mm24|/scratch/tutorial/preprocessing/pos-tagger|[3]% ls compare-labels.cc create-lexicon.cc generate.cc README.POS compile.sh* data/ generate.h SendReceive.h corpus.test features.cc lex-examples.cc snow/ corpus.test.tagged features.h Makefile tagger.cc create-lexicon* gen.cc net/ mssammon|csil-mm24|/scratch/tutorial/preprocessing/pos-tagger|[4]% ./compile.sh Compiling SNOW tagger software... g++ -c -O2 -o Snow.o Snow.cpp g++ -c -O2 -o Cloud.o Cloud.cpp g++ -c -O2 -o Network.o Network.cpp g++ -c -O2 -o Target.o Target.cpp g++ -c -O2 -o Winnow.o Winnow.cpp g++ -c -O2 -o Perceptron.o Perceptron.cpp g++ -c -O2 -o NaiveBayes.o NaiveBayes.cpp g++ -c -O2 -o Example.o Example.cpp g++ -c -O2 -o TargetIdSet.o TargetIdSet.cpp g++ -c -O2 -o SnowParam.o SnowParam.cpp g++ -o snow Snow.o Cloud.o Network.o Target.o Winnow.o Perceptron.o NaiveBayes.o Example.o TargetIdSet.o SnowParam.o g++ -o create-lexicon create-lexicon.cc In file included from /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/iostream.h:31, from create-lexicon.cc:8: /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. g++ -c -g -DGCC -O3 generate.cc -o generate.o In file included from /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/iostream.h:31, from generate.cc:10: /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. g++ -c -g -DGCC -O3 features.cc -o features.o In file included from /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/map.h:59, from features.cc:9: /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. g++ -g -DGCC -O3 gen.cc generate.o features.o -o gen In file included from /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/iostream.h:31, from gen.cc:1: /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. g++ -c -O3 -o tagger.o tagger.cc In file included from /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/iostream.h:31, from tagger.cc:1: /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. g++ -o tagger snow/SnowParam.o snow/Cloud.o snow/Network.o snow/Example.o snow/Target.o snow/Winnow.o snow/Perceptron.o snow/NaiveBayes.o snow/TargetIdSet.o generate.o features.o tagger.o -lxnet -lpthread /usr/bin/ld: cannot find -lxnet collect2: ld returned 1 exit status make: *** [tagger] Error 1 mssammon|csil-mm24|/scratch/tutorial/preprocessing/pos-tagger|[5]% xemacs Makefile mssammon|csil-mm24|/scratch/tutorial/preprocessing/pos-tagger|[7]% ./compile.sh Compiling SNOW tagger software... make: `snow' is up to date. g++ -o create-lexicon create-lexicon.cc In file included from /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/iostream.h:31, from create-lexicon.cc:8: /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. make: `gen' is up to date. g++ -o tagger snow/SnowParam.o snow/Cloud.o snow/Network.o snow/Example.o snow/Target.o snow/Winnow.o snow/Perceptron.o snow/NaiveBayes.o snow/TargetIdSet.o generate.o features.o tagger.o -lpthread mssammon|csil-mm24|/scratch/tutorial/preprocessing/pos-tagger|[8]% ls compare-labels.cc features.cc generate.o snow/ compile.sh* features.h lex-examples.cc tagger* corpus.test features.o Makefile tagger.cc corpus.test.tagged gen* Makefile~ tagger.o create-lexicon* gen.cc net/ create-lexicon.cc generate.cc README.POS data/ generate.h SendReceive.h mssammon|csil-mm24|/scratch/tutorial/preprocessing/pos-tagger|[9]% ./tagger Usage: ./tagger -i : corpus input file -o : corpus output file -s : server port number mssammon|csil-mm24|/scratch/tutorial/preprocessing/pos-tagger|[10]% mssammon|csil-mm24|/scratch/tutorial/preprocessing|[11]% cp ../nyttext.word . mssammon|csil-mm24|/scratch/tutorial/preprocessing|[12]% cat nyttext.word Mr. Keyes will face State Senator Barack Obama in the campaign to replace Senator Peter Fitzgerald , a Republican , who is retiring . mssammon|csil-mm24|/scratch/tutorial/preprocessing|[13]% ./tagger -i nyttext.word -o nyttext.pos mssammon|csil-mm24|/scratch/tutorial/preprocessing|[14]% cat nyttext.pos (NNP Mr.) (NNP Keyes) (MD will) (VB face) (NNP State) (NNP Senator) (NNP Barack) (NNP Obama) (IN in) (DT the) (NN campaign) (TO to) (VB replace) (NNP Senator) (NNP Peter) (NNP Fitzgerald) (, ,) (DT a) (NNP Republican) (, ,) (WP who) (VBZ is) (VBG retiring) (. .) mssammon|csil-mm24|/scratch/tutorial/preprocessing|[15]%