sutdnlp / zpar Goto Github PK
View Code? Open in Web Editor NEWA fast and great parser
Home Page: https://github.com/SUTDNLP/ZPar
A fast and great parser
Home Page: https://github.com/SUTDNLP/ZPar
Hi all,
I'm using the ctb70 corpus to train a segmentation model and evaluate it.
The evaluate.py crashed at line 246 which is assert( len(tTagged) < 3)
,
because the corpus has the sentence such as (_)-(_)
and link which has two _
in the it.
I think it's not a bug but the evaluate.py really crashed and I want to tell you.
Best,
PanDa
python configure.py chinese depparser
cmake .
make
Scanning dependencies of target chinese.depparser.parser
[ 5%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/libs/reader.cpp.o
[ 10%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/libs/writer.cpp.o
[ 15%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/libs/options.cpp.o
[ 20%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/libs/linguistics/lemma.cpp.o
[ 25%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/libs/linguistics/conll.cpp.o
[ 30%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/libs/learning/dbn.cpp.o
[ 35%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/common/depparser/implementations/arceager/depparser.cpp.o
[ 40%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/common/depparser/implementations/arceager/depparser_weight.cpp.o
[ 45%] Building CXX object CMakeFiles/chinese.depparser.parser.dir/src/common/depparser/main.cpp.o
/home/mason/workspace/ZPar/src/common/depparser/main.cpp: In function ‘void process(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, long unsigned int, bool, const string&, bool, const string&)’:
/home/mason/workspace/ZPar/src/common/depparser/main.cpp:85:23: error: cannot convert ‘std::istream {aka std::basic_istream}’ to ‘bool’ in assignment
bReadSuccessful = ( (_is) >> input_conll );
^
/home/mason/workspace/ZPar/src/common/depparser/main.cpp:138:26: error: cannot convert ‘std::istream {aka std::basic_istream}’ to ‘bool’ in assignment
bReadSuccessful = ( (_is) >> input_conll );
^
CMakeFiles/chinese.depparser.parser.dir/build.make:254: recipe for target 'CMakeFiles/chinese.depparser.parser.dir/src/common/depparser/main.cpp.o' failed
make[2]: *** [CMakeFiles/chinese.depparser.parser.dir/src/common/depparser/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/chinese.depparser.parser.dir/all' failed
make[1]: *** [CMakeFiles/chinese.depparser.parser.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
The default tagsets for depparser is penn treebank style(ROOT AMOD DEP NMOD OBJ P PMOD PRD SBAR SUB VC VMOD), which I can't find the description or corpus anymore.
How can I change it using Universal or Stanford dependencies?
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.