SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new MorphaStemmer().morpha("climbed") // goes to "climb"
  2.    
  3. tar -xzf flex-for-morph.tar.gz
  4.    
  5. ./configure
  6. make
  7.    
  8. sudo apt-get install bison
  9.    
  10. gcc -g -O -o flex  ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o  libfl.a
  11.    
  12. ../flex-2.5.4/flex -i -Cfe -8 -omorpha.yy.c morpha.lex
  13. gcc -o morpha morpha.yy.c
  14.    
  15. ./morpha -t  < ~/path to your file/yourfile.tag
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top