mynlp / enju Goto Github PK
View Code? Open in Web Editor NEWEnglish HPSG parser
License: Other
English HPSG parser
License: Other
I have noticed that sometimes enju's output stream starts with the sequence \033[?1034h
(and breaks scripts that parse it).
A quick search reveals that this is a terminal escape sequence for handling the meta key.
I'm almost sure that this is not a bug for enju but rather a bug of the I/O system libraries it uses. I'm leaving it here for documentation purposes.
I have been getting an error after doing 'make' on MacOS.
...
libtool: link: g++ -fstrict-aliasing -W -Wall -g -O2 -Wl,-rpath -Wl,/usr/local/lib -rdynamic -o lilfes lilfes-main.o -Wl,-bind_at_load ./.libs/liblilfes.a -ldl -lbz2 -lz -lutil -lcurses -lreadline
make[2]: *** No rule to make target yacc.h', needed by
yacc.hh'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Hi,
On Ubuntu 16.10, after following the instructions to compile and then running enju, I get a Segmentation Fault. If I reconfigure with CFLAGS="-g -O0 -DDEBUG" CPPFLAGS="-DDEBUG" ./configure
and compile, and run through gdb, I can get the following stack trace:
$ gdb enju
(gdb) bt
#0 std::tr1::_Hashtable<int, std::pair<int const, lilfes::coercode*>, std::allocator<std::pair<int const, lilfes::coercode*> >, std::_Select1st<std::pair<int const, lilfes::coercode*> >, std::equal_to<int>, std::tr1::hash<int>, std::tr1::__detail::_Mod_range_hashing, std::tr1::__detail::_Default_ranged_hash, std::tr1::__detail::_Prime_rehash_policy, false, false, true>::find (this=<optimised out>, this=<optimised out>, __k=<optimised out>) at /usr/include/c++/6/tr1/hashtable.h:698
#1 lilfes::coerceDataAdd (b=1, a=1) at ../include/liblilfes/ftype.h:637
#2 lilfes::CompileType (unifiee=unifiee@entry=0x555555977660, unifier=unifier@entry=0x555555977660) at compile.cpp:272
#3 0x000055555562b294 in lilfes::type::Fix (this=this@entry=0x555555977660, displayError=displayError@entry=true) at ftype.cpp:986
#4 0x000055555562cf7d in lilfes::init () at ftype.cpp:114
#5 0x00005555556b22f8 in lilfes::InitTermBase::PerformAll (table=0x555555937780 <_ZN6lilfesL2IFE>) at initial.cpp:33
#6 lilfes::Initializer::PerformAll () at initial.cpp:52
#7 0x0000555555577f5a in main (argc=1, argv=0x7fffffffca18) at enju.cc:32
As far as I can see, I think the problem could be that coerceHash is not being initialised correctly (or perhaps not linked correctly)?
Please let me know if you need any more information.
Thanks for your work on enju,
Frankie
Hello:
Could you tell me what's the problem?
When i trying making enju, it says: yacc is not found, so i installed byacc.
And then i found the following error:
make[2]: Entering directory /home/tianji006/enju-master/ll/src' /bin/bash ../ylwrap yacc.yy y.tab.c yacc.cc y.tab.h
echo yacc.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/y.output yacc.output -- yacc -d -v yacc: e - line 191 of "/home/tianji006/enju-master/ll/src/yacc.yy", syntax error %param {void *parm} ^ make[2]: *** [yacc.cc] Error 1 make[2]: Leaving directory
/home/tianji006/enju-master/ll/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tianji006/enju-master/ll'
make: *** [all-recursive] Error 1
Thank you.
Usual make install:
git clone
./configure --prefix=/mnt/Vancouver/apps/enju_parser/
make
make install
make clean
[victoria@victoria bin]$ ./enju
Enju 2.4.4
Copyright (c) 2005-2010, Tsujii Laboratory, The University of Tokyo.
All rights reserved.
Loading grammar module "enju/grammar"... done.
Loading FOM module "enju/synmodel"... done.
Loading parser module "mayz/up"... done.
Loading module "enju/outputdep"... done.
Initializing parser...
Initializing external tagger: /mnt/Vancouver/apps/enju_parser/bin/stepp -t -e -m /mnt/Vancouver/apps/enju_parser/share/stepp/models_wsj02-21c
Initializing morphological analyzer: /mnt/Vancouver/apps/enju_parser/bin/enju-morph -s /mnt/Vancouver/apps/enju_parser/lib/enju/DATA
Initializing supertagger:
lexicon: /mnt/Vancouver/apps/enju_parser/lib/enju/DATA/Enju.lexicon
model: /mnt/Vancouver/apps/enju_parser/share/liblilfes/enju/enju-super.conf
parameter: /mnt/Vancouver/apps/enju_parser/lib/enju/DATA/Enju-lex.output.gz
Loading template database: /mnt/Vancouver/apps/enju_parser/lib/enju/DATA/Enju.templates
Loading Syntax FOM model: /mnt/Vancouver/apps/enju_parser/lib/enju/DATA/Enju-syn.output.gz
done.
done.
Ready
Metastasis is the primary cause of cancer-related deaths.
Parsing failure: search limit exceeded
Victoria lives in Vancouver.
Parsing failure: search limit exceeded
^C
[victoria@victoria bin]$
Why am I getting this error?
Parsing failure: search limit exceeded
We have a trouble to compile Enju on a docker container (Ubuntu 16.04), which says "yacc.h" is missing... (Bison is installed though.)
We found the related issue and cloned the latest master branch, but the problem was unsolved.
Here is the error message:
make[2]: Entering directory ‘/root/enju/ll/src’
depbase=`echo yacc.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -DPKGDATADIR=“\”/usr/local/share/liblilfes\“” -I. -I../include/liblilfes -I../include -I../include/liblilfes -I. -fstrict-aliasing -W -Wall -g -O2 -MT yacc.lo -MD -MP -MF $depbase.Tpo -c -o yacc.lo yacc.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -DPKGDATADIR=\“/usr/local/share/liblilfes\” -I. -I../include/liblilfes -I../include -I../include/liblilfes -I. -fstrict-aliasing -W -Wall -g -O2 -MT yacc.lo -MD -MP -MF .deps/yacc.Tpo -c yacc.cc -o yacc.o
make[2]: *** No rule to make target ‘yacc.h’, needed by ‘yacc.hh’. Stop.
make[2]: Leaving directory ‘/root/enju/ll/src’
Would you help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.