GithubHelp home page GithubHelp logo

clab / rnng Goto Github PK

View Code? Open in Web Editor NEW
186.0 186.0 45.0 1.79 MB

Recurrent neural network grammars

C++ 75.20% CMake 1.70% Cuda 1.00% Makefile 0.07% Python 14.77% Jupyter Notebook 6.86% Shell 0.03% Perl 0.36%

rnng's People

Contributors

adhigunasurya avatar redpony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rnng's Issues

Makefile error: undefined reference to 'boost::iostreams::detail::bzip2_base'

Hi,
Thanks for your code. It makes great sense.
However, an error occurred when I ran "make -j2" . Do you kown why this occrred, and what should I do to fix it?

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::iostreams::detail::indirect_streambuf<boost::iostreams::basic_bzip2_decompressor<std::allocator<char> >, std::char_traits<char>, std::allocator<char>, boost::iostreams::input>::close_impl(std::_Ios_Openmode)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:380: undefined reference to boost::iostreams::detail::bzip2_base::end(bool)'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::detail::sp_counted_impl_p<boost::iostreams::symmetric_filter<boost::iostreams::detail::bzip2_decompressor_impl<std::allocator<char> >, std::allocator<char> >::impl>::dispose()': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:218: undefined reference to boost::iostreams::detail::bzip2_base::~bzip2_base()'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::detail::sp_counted_impl_p<boost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_decompressor_impl<std::allocator<char> >, std::allocator<char> >::impl>::dispose()': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to `boost::iostreams::detail::zlib_base::~zlib_base()'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::iostreams::detail::indirect_streambuf<boost::iostreams::basic_bzip2_decompressor<std::allocator<char> >, std::char_traits<char>, std::allocator<char>, boost::iostreams::input>::underflow()': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:380: undefined reference to boost::iostreams::detail::bzip2_base::end(bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:366: undefined reference to boost::iostreams::detail::bzip2_base::before(char const*&, char const*, char*&, char*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:367: undefined reference to boost::iostreams::detail::bzip2_base::decompress()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:368: undefined reference to boost::iostreams::bzip2::ok' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:370: undefined reference to boost::iostreams::detail::bzip2_base::after(char const*&, char*&)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:371: undefined reference to boost::iostreams::bzip2_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:372: undefined reference to boost::iostreams::bzip2::stream_end'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:167: undefined reference to boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:369: undefined reference to boost::iostreams::detail::bzip2_base::check_end(char const*, char const*)'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::iostreams::gzip_error::gzip_error(int)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:168: undefined reference to boost::iostreams::zlib::okay'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::basic_gzip_decompressor(int, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:742: undefined reference to boost::iostreams::zlib::default_compression'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::basic_gzip_decompressor(int, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:122: undefined reference to boost::iostreams::zlib::deflated'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:122: undefined reference to boost::iostreams::zlib::default_strategy' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:368: undefined reference to boost::iostreams::detail::zlib_base::zlib_base()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:193: undefined reference to `boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* ()(void, unsigned int, unsigned int), void ()(void, void*), void*)'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::basic_gzip_decompressor(int, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:327: undefined reference to boost::iostreams::detail::gzip_header::reset()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:369: undefined reference to `boost::iostreams::detail::gzip_footer::reset()'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::basic_gzip_decompressor(int, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:368: undefined reference to boost::iostreams::detail::zlib_base::~zlib_base()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::~zlib_base()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::~zlib_base()'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function boost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_decompressor_impl<std::allocator<char> >, std::allocator<char> >::close_impl()': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:398: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function long boost::iostreams::symmetric_filter<boost::iostreams::detail::bzip2_decompressor_impl<std::allocator<char> >, std::allocator<char> >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char const*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:366: undefined reference to boost::iostreams::detail::bzip2_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:367: undefined reference to boost::iostreams::detail::bzip2_base::decompress()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:370: undefined reference to boost::iostreams::detail::bzip2_base::after(char const*&, char*&)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:371: undefined reference to boost::iostreams::bzip2_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:372: undefined reference to boost::iostreams::bzip2::stream_end'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:380: undefined reference to boost::iostreams::detail::bzip2_base::end(bool)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:167: undefined reference to boost::iostreams::detail::bzip2_base::do_init(bool, void* ()(void, int, int), void ()(void, void*), void*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:366: undefined reference to boost::iostreams::detail::bzip2_base::before(char const*&, char const*, char*&, char*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:367: undefined reference to boost::iostreams::detail::bzip2_base::decompress()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:370: undefined reference to boost::iostreams::detail::bzip2_base::after(char const*&, char*&)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:371: undefined reference to boost::iostreams::bzip2_error::check(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:372: undefined reference to `boost::iostreams::bzip2::stream_end'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char const*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to boost::iostreams::zlib::stream_end'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:398: undefined reference to `boost::iostreams::detail::zlib_base::reset(bool, bool)'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char const*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:453: undefined reference to boost::iostreams::detail::gzip_footer::process(char)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:428: undefined reference to boost::iostreams::detail::gzip_header::process(char)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:423: undefined reference to boost::iostreams::detail::gzip_header::reset()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:424: undefined reference to `boost::iostreams::detail::gzip_footer::reset()'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char const*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to boost::iostreams::zlib::stream_end'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:504: undefined reference to boost::iostreams::detail::gzip_footer::process(char)'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to `boost::iostreams::zlib::stream_end'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:469: undefined reference to boost::iostreams::detail::gzip_header::reset()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:470: undefined reference to boost::iostreams::detail::gzip_footer::reset()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:479: undefined reference to boost::iostreams::detail::gzip_header::process(char)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:515: undefined reference to boost::iostreams::detail::gzip_header::reset()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:516: undefined reference to boost::iostreams::detail::gzip_footer::reset()'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to boost::iostreams::zlib::stream_end' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to `boost::iostreams::zlib::stream_end'

CMakeFiles/nt-parser-gen.dir/oracle.cc.o: In function cnn::compressed_ifstream::compressed_ifstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:350: undefined reference to boost::iostreams::detail::bzip2_base::bzip2_base(boost::iostreams::bzip2_params const&)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:218: undefined reference to boost::iostreams::detail::bzip2_base::~bzip2_base()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:218: undefined reference to boost::iostreams::detail::bzip2_base::~bzip2_base()'
collect2: error: ld returned 1 exit status
nt-parser/CMakeFiles/nt-parser-gen.dir/build.make:151: recipe for target 'nt-parser/nt-parser-gen' failed
make[2]: *** [nt-parser/nt-parser-gen] Error 1

CMakeFiles/Makefile2:181: recipe for target 'nt-parser/CMakeFiles/nt-parser-gen.dir/all' failed
make[1]: *** [nt-parser/CMakeFiles/nt-parser-gen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::iostreams::detail::indirect_streambuf<boost::iostreams::basic_bzip2_decompressor<std::allocator<char> >, std::char_traits<char>, std::allocator<char>, boost::iostreams::input>::close_impl(std::_Ios_Openmode)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:380: undefined reference to boost::iostreams::detail::bzip2_base::end(bool)'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::detail::sp_counted_impl_p<boost::iostreams::symmetric_filter<boost::iostreams::detail::bzip2_decompressor_impl<std::allocator<char> >, std::allocator<char> >::impl>::dispose()': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:218: undefined reference to boost::iostreams::detail::bzip2_base::~bzip2_base()'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::detail::sp_counted_impl_p<boost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_decompressor_impl<std::allocator<char> >, std::allocator<char> >::impl>::dispose()': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::~zlib_base()' CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::iostreams::detail::indirect_streambuf<boost::iostreams::basic_bzip2_decompressor<std::allocator >, std::char_traits, std::allocator, boost::iostreams::input>::underflow()':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:380: undefined reference to boost::iostreams::detail::bzip2_base::end(bool)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:366: undefined reference to boost::iostreams::detail::bzip2_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:367: undefined reference to boost::iostreams::detail::bzip2_base::decompress()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:368: undefined reference to boost::iostreams::bzip2::ok'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:370: undefined reference to boost::iostreams::detail::bzip2_base::after(char const*&, char*&)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:371: undefined reference to boost::iostreams::bzip2_error::check(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:372: undefined reference to boost::iostreams::bzip2::stream_end' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:167: undefined reference to boost::iostreams::detail::bzip2_base::do_init(bool, void* ()(void, int, int), void ()(void, void*), void*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:369: undefined reference to boost::iostreams::detail::bzip2_base::check_end(char const*, char const*)' CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::iostreams::gzip_error::gzip_error(int)':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:168: undefined reference to boost::iostreams::zlib::okay' CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::iostreams::basic_gzip_decompressor<std::allocator >::basic_gzip_decompressor(int, long)':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:742: undefined reference to boost::iostreams::zlib::default_compression' CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::iostreams::basic_gzip_decompressor<std::allocator >::basic_gzip_decompressor(int, long)':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:122: undefined reference to boost::iostreams::zlib::deflated' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:122: undefined reference to boost::iostreams::zlib::default_strategy'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:368: undefined reference to boost::iostreams::detail::zlib_base::zlib_base()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:193: undefined reference to boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* ()(void, unsigned int, unsigned int), void ()(void, void*), void*)'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::basic_gzip_decompressor(int, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:327: undefined reference to boost::iostreams::detail::gzip_header::reset()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:369: undefined reference to boost::iostreams::detail::gzip_footer::reset()' CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::iostreams::basic_gzip_decompressor<std::allocator >::basic_gzip_decompressor(int, long)':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:368: undefined reference to boost::iostreams::detail::zlib_base::~zlib_base()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::~zlib_base()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:373: undefined reference to boost::iostreams::detail::zlib_base::~zlib_base()' CMakeFiles/nt-parser.dir/oracle.cc.o: In function boost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_decompressor_impl<std::allocator >, std::allocator >::close_impl()':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:398: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)' CMakeFiles/nt-parser.dir/oracle.cc.o: In function long boost::iostreams::symmetric_filter<boost::iostreams::detail::bzip2_decompressor_impl<std::allocator >, std::allocator >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits >&, char const*, long)':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:366: undefined reference to boost::iostreams::detail::bzip2_base::before(char const*&, char const*, char*&, char*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:367: undefined reference to boost::iostreams::detail::bzip2_base::decompress()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:370: undefined reference to boost::iostreams::detail::bzip2_base::after(char const*&, char*&)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:371: undefined reference to boost::iostreams::bzip2_error::check(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:372: undefined reference to boost::iostreams::bzip2::stream_end' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:380: undefined reference to boost::iostreams::detail::bzip2_base::end(bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:167: undefined reference to boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:366: undefined reference to boost::iostreams::detail::bzip2_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:367: undefined reference to boost::iostreams::detail::bzip2_base::decompress()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:370: undefined reference to boost::iostreams::detail::bzip2_base::after(char const*&, char*&)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:371: undefined reference to boost::iostreams::bzip2_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:372: undefined reference to boost::iostreams::bzip2::stream_end'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char const*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to boost::iostreams::zlib::stream_end'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:398: undefined reference to boost::iostreams::detail::zlib_base::reset(bool, bool)' CMakeFiles/nt-parser.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits >&, char const*, long)':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:453: undefined reference to boost::iostreams::detail::gzip_footer::process(char)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:428: undefined reference to boost::iostreams::detail::gzip_header::process(char)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:423: undefined reference to boost::iostreams::detail::gzip_header::reset()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:424: undefined reference to boost::iostreams::detail::gzip_footer::reset()'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char const*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to boost::iostreams::zlib::stream_end'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:504: undefined reference to boost::iostreams::detail::gzip_footer::process(char)'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator<char> >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char*, long)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to boost::iostreams::zlib::stream_end' CMakeFiles/nt-parser.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits >&, char*, long)':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:469: undefined reference to boost::iostreams::detail::gzip_header::reset()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:470: undefined reference to boost::iostreams::detail::gzip_footer::reset()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:479: undefined reference to boost::iostreams::detail::gzip_header::process(char)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:515: undefined reference to boost::iostreams::detail::gzip_header::reset()'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/gzip.hpp:516: undefined reference to boost::iostreams::detail::gzip_footer::reset()' CMakeFiles/nt-parser.dir/oracle.cc.o: In function long boost::iostreams::basic_gzip_decompressor<std::allocator >::read<boost::iostreams::detail::linked_streambuf<char, std::char_traits > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits >&, char*, long)':
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to boost::iostreams::zlib::stream_end'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:388: undefined reference to boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::zlib::sync_flush'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:389: undefined reference to boost::iostreams::detail::zlib_base::xinflate(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:390: undefined reference to boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:391: undefined reference to boost::iostreams::zlib_error::check(int)' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/zlib.hpp:392: undefined reference to boost::iostreams::zlib::stream_end'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function cnn::compressed_ifstream::compressed_ifstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:350: undefined reference to boost::iostreams::detail::bzip2_base::bzip2_base(boost::iostreams::bzip2_params const&)'
/home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:218: undefined reference to boost::iostreams::detail::bzip2_base::~bzip2_base()' /home/zhangmengyu/Documents/rnng/1_67_0_boost/include/boost/iostreams/filter/bzip2.hpp:218: undefined reference to boost::iostreams::detail::bzip2_base::~bzip2_base()'
collect2: error: ld returned 1 exit status
nt-parser/CMakeFiles/nt-parser.dir/build.make:177: recipe for target 'nt-parser/nt-parser' failed
make[2]: *** [nt-parser/nt-parser] Error 1
CMakeFiles/Makefile2:218: recipe for target 'nt-parser/CMakeFiles/nt-parser.dir/all' failed
make[1]: *** [nt-parser/CMakeFiles/nt-parser.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Generative RNNG: "Unexecuted actions remain but final state reached!"

Hi,

I try to run the generative RNNG on the PTB. And I deleted line 33571 of the training data (I have the same sentence on that line), which is mentioned in README.md. Then I follow the step:

python get_unkified_terminals.py -p train_gen.oracle > train-terms.txt

./wcluster --text ../rnng/train-terms.txt --c 140  //get clusters-train-berk-mine.txt

nohup build/nt-parser/nt-parser-gen --cnn-mem 2048 -x -T train_gen.oracle -d dev_gen.oracle -t --clusters clusters-train-berk-mine.txt --input_dim 256 --lstm_input_dim 256 --hidden_dim 256 -D 0.3 > log_gen.txt

But at update 11, I get the error message

Unexecuted actions remain but final state reached!

The detailed log file is attached.
log_gen.txt

Any help will be appreciated!

(BTW, I am able to run the discriminative model.)

Error when trying to decode with discriminative model

I am trying to run the following command for decoding with discriminative model:

build/nt-parser/nt-parser --cnn-mem 1700 -x -T train-gen.oracle -p test-gen.oracle -C sample_input_english.txt -P --pretrained_dim 256 -w 256 --lstm_input_dim 128 --hidden_dim 128 -m oracles/lm_0_2_128_384-pid103351.params --alpha 0.8 -s 100 > test-samples.props

but am getting this error:

[cnn] random seed: 125536842
[cnn] allocating memory: 1700MB
[cnn] memory allocation done.
COMMAND LINE: build/nt-parser/nt-parser -x -T train-gen.oracle -p test-gen.oracle -C sample_input_english.txt -P --pretrained_dim 256 -w 256 --lstm_input_dim 128 --hidden_dim 128 -m pretrained-gen-new.params --alpha 0.8 -s 100
PARAMETER FILE: ntparse_pos_0_2_32_128_16_128-pid133.params
Loading top-down oracle from train-gen.oracle [training] ...
Loaded 0 sentences
    cumulative      action vocab size: 2
    cumulative    terminal vocab size: 0
    cumulative nonterminal vocab size: 0
    cumulative         pos vocab size: 0
Reading pretrained embeddings from 256 ...
File does not seem to be in word2vec format
Aborted (core dumped)

How can I solve this?

Boost and CMake versions for building the code.

Hi, I am attempting to build this project, and there seems to be some conflict between the versions of cmake and boost. My command prompt is pasted here.

The versions I am using are:
cmake version 3.10.1
boost version 1.65.1

Please let me know the versions that have been used for the project. Thanks a lot.

Sample Input

Hi, could you kindly provide the format of the input? thanks

boost linking issue

very likely I am doing something wrong in installing/linking the boost libraries. Is there a boost version that you recommend? I have installed Boost 1.65.0 and cmake from their git repo (which is compatible with Boost 1.65.0). I have also tried Boost 1.65.1 and 1.64.0. I am using the following command and am getting the following errors when I run make -j2. I have LD_LIBRARY_PATH set to <PATH-TO-BOOST>/boost/lib and path var includes the bin directories of the boost installation. What am I missing?

-DBOOST_INCLUDEDIR=<PATH-TO-BOOST>/boost/include \
-DBOOST_LIBRARYDIR=<PATH-TO-BOOST>/boost/lib \
-DBOOST_ROOT=<PATH-TO-BOOST>/boost \
-DEIGEN3_INCLUDE_DIR=<PATH-TO-EIGEN>/eigen-eigen-1f0f8337c029 -DBoost_NO_BOOST_CMAKE=True ..```

```[ 92%] Linking CXX executable nt-parser
CMakeFiles/nt-parser.dir/oracle.cc.o: In function `boost::iostreams::detail::bzip2_decompressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)':
/home/sonalgupta/external/opt/boost/include/boost/iostreams/filter/bzip2.hpp:358: undefined reference to `boost::iostreams::detail::bzip2_base::before(char const*&, char const*, char*&, char*)'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function `boost::iostreams::detail::bzip2_decompressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool) [clone .constprop.343]':
oracle.cc:(.text+0x567): undefined reference to `boost::iostreams::detail::bzip2_base::decompress()'
oracle.cc:(.text+0x56d): undefined reference to `boost::iostreams::bzip2::ok'
oracle.cc:(.text+0x57f): undefined reference to `boost::iostreams::detail::bzip2_base::after(char const*&, char*&)'
oracle.cc:(.text+0x586): undefined reference to `boost::iostreams::bzip2_error::check(int)'
oracle.cc:(.text+0x58c): undefined reference to `boost::iostreams::bzip2::stream_end'
oracle.cc:(.text+0x5b5): undefined reference to `boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)'
oracle.cc:(.text+0x5cc): undefined reference to `boost::iostreams::detail::bzip2_base::check_end(char const*, char const*)'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function `boost::detail::sp_counted_impl_p<boost::iostreams::symmetric_filter<boost::iostreams::detail::bzip2_decompressor_impl<std::allocator<char> >, std::allocator<char> >::impl>::dispose()':
oracle.cc:(.text._ZN5boost6detail17sp_counted_impl_pINS_9iostreams16symmetric_filterINS2_6detail23bzip2_decompressor_implISaIcEEES6_E4implEE7disposeEv[_ZN5boost6detail17sp_counted_impl_pINS_9iostreams16symmetric_filterINS2_6detail23bzip2_decompressor_implISaIcEEES6_E4implEE7disposeEv]+0x1c): undefined reference to `boost::iostreams::detail::bzip2_base::~bzip2_base()'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function `boost::iostreams::detail::bzip2_decompressor_impl<std::allocator<char> >::close()':
oracle.cc:(.text._ZN5boost9iostreams6detail23bzip2_decompressor_implISaIcEE5closeEv[_ZN5boost9iostreams6detail23bzip2_decompressor_implISaIcEE5closeEv]+0x7): undefined reference to `boost::iostreams::detail::bzip2_base::end(bool)'
CMakeFiles/nt-parser.dir/oracle.cc.o: In function `long boost::iostreams::symmetric_filter<boost::iostreams::detail::bzip2_decompressor_impl<std::allocator<char> >, std::allocator<char> >::write<boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >&, char const*, long)':```

Creating my own inputs

Dear @adhigunasurya ,
I have been trying to create my own input using Stanford parser on texts and then cleaning the results to match the sample input format. However, after running the commands to train the discriminative model

python get_oracle.py cleanedTraining.txt cleanedTraining.txt > train.oracle
python get_oracle.py cleanedTraining.txt cleanedDevSet.txt > dev.oracle
python get_oracle.py cleanedTraining.txt sample_input_english.txt > test.oracle
nohup build/nt-parser/nt-parser --cnn-mem 1700 -x -T train.oracle -d dev.oracle -C cleanedDevSet.txt -P -t --lstm_input_dim 128 --hidden_dim 128 -D 0.2 > log.txt

I get "Correct action list exhausted, but not in final parser state" in log.txt
what does this mean?
(cleanedTraining.txt)
(cleanedDevSet.txt)

make error for nt-parser-gen-attention-gated-stack-only

I'm trying to build the ablated parser by editing nt-parser/CMakeLists.txt, as it states in the README. My nt-parser/CMakeLists.txt file now looks like this:

PROJECT(dynet:nt-parser)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

ADD_EXECUTABLE(nt-parser nt-parser.cc eval.cc oracle.cc pretrained.cc)
target_link_libraries(nt-parser dynet ${Boost_LIBRARIES} z)

ADD_EXECUTABLE(nt-parser-gen nt-parser-gen.cc oracle.cc pretrained.cc)
target_link_libraries(nt-parser-gen dynet ${Boost_LIBRARIES} z)

ADD_EXECUTABLE(nt-parser-gen-attention-gated-stack-only nt-parser-gen-attention-gated-stack-only.cc oracle.cc pretrained.cc)
target_link_libraries(nt-parser-gen-attention-gated-stack-only dynet ${Boost_LIBRARIES} z)

However, when I run make -j2, I get the following error (omitting lines related to nt-parser and nt-parser-gen):

[ 97%] Building CXX object nt-parser/CMakeFiles/nt-parser-gen-attention-gated-stack-only.dir/nt-parser-gen-attention-gated-stack-only.cc.o
In file included from /usr/include/c++/4.8.2/cassert:43:0,
                 from /om/group/cpl/language-models/rnng-incremental/dependencies/boost_1_68_0/boost/iostreams/filter/bzip2.hpp:18,
                 from /om/group/cpl/language-models/rnng-incremental/nt-parser/compressed-fstream.h:10,
                 from /om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:31:
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc: In member function std::vector<unsigned int> ParserBuilder::log_prob_parser(cnn::ComputationGraph*, const parser::Sentence&, const std::vector<int>&, double*, bool)’:
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:444:82: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         assert (forward.size() == backward.size() && forward.size() == (nchildren));
                                                                                  ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:455:128: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         assert (concatenated.size() == forward.size() && forward.size() == backward.size() && concatenated.size() == (nchildren));
                                                                                                                                ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:474:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         assert (at_vector.size() == (nchildren));
                                               ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:233:16: warning: variable ‘A’ set but not used [-Wunused-but-set-variable]
     Expression A = parameter(*hg, p_A);
                ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:234:16: warning: variable ‘T’ set but not used [-Wunused-but-set-variable]
     Expression T = parameter(*hg, p_T);
                ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc: In function ‘int main(int, char**)’:
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:588:74: error: no matching function for call to ‘parser::TopDownOracleGen::TopDownOracleGen(cnn::Dict*, cnn::Dict*, cnn::Dict*, cnn::Dict*)’
   parser::TopDownOracleGen corpus(&termdict, &adict, &posdict, &ntermdict);
                                                                          ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:588:74: note: candidates are:
In file included from /om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:29:0:
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:59:3: note: parser::TopDownOracleGen::TopDownOracleGen(dynet::Dict*, dynet::Dict*, dynet::Dict*, dynet::Dict*)
   TopDownOracleGen(dynet::Dict* termdict, dynet::Dict* adict, dynet::Dict* pdict, dynet::Dict* nontermdict) :
   ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:59:3: note:   no known conversion for argument 1 from ‘cnn::Dict*’ to ‘dynet::Dict*’
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:57:7: note: parser::TopDownOracleGen::TopDownOracleGen(const parser::TopDownOracleGen&)
 class TopDownOracleGen : public Oracle {
       ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:57:7: note:   candidate expects 1 argument, 4 provided
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:57:7: note: parser::TopDownOracleGen::TopDownOracleGen(parser::TopDownOracleGen&&)
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:57:7: note:   candidate expects 1 argument, 4 provided
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:589:78: error: no matching function for call to ‘parser::TopDownOracleGen::TopDownOracleGen(cnn::Dict*, cnn::Dict*, cnn::Dict*, cnn::Dict*)’
   parser::TopDownOracleGen dev_corpus(&termdict, &adict, &posdict, &ntermdict);
                                                                              ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:589:78: note: candidates are:
In file included from /om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:29:0:
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:59:3: note: parser::TopDownOracleGen::TopDownOracleGen(dynet::Dict*, dynet::Dict*, dynet::Dict*, dynet::Dict*)
   TopDownOracleGen(dynet::Dict* termdict, dynet::Dict* adict, dynet::Dict* pdict, dynet::Dict* nontermdict) :
   ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:59:3: note:   no known conversion for argument 1 from ‘cnn::Dict*’ to ‘dynet::Dict*’
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:57:7: note: parser::TopDownOracleGen::TopDownOracleGen(const parser::TopDownOracleGen&)
 class TopDownOracleGen : public Oracle {
       ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:57:7: note:   candidate expects 1 argument, 4 provided
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:57:7: note: parser::TopDownOracleGen::TopDownOracleGen(parser::TopDownOracleGen&&)
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:57:7: note:   candidate expects 1 argument, 4 provided
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:590:80: error: no matching function for call to ‘parser::TopDownOracleGen2::TopDownOracleGen2(cnn::Dict*, cnn::Dict*, cnn::Dict*, cnn::Dict*)’
   parser::TopDownOracleGen2 test_corpus(&termdict, &adict, &posdict, &ntermdict);
                                                                                ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:590:80: note: candidates are:
In file included from /om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:29:0:
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:68:3: note: parser::TopDownOracleGen2::TopDownOracleGen2(dynet::Dict*, dynet::Dict*, dynet::Dict*, dynet::Dict*)
   TopDownOracleGen2(dynet::Dict* termdict, dynet::Dict* adict, dynet::Dict* pdict, dynet::Dict* nontermdict) :
   ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:68:3: note:   no known conversion for argument 1 from ‘cnn::Dict*’ to ‘dynet::Dict*’
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:66:7: note: parser::TopDownOracleGen2::TopDownOracleGen2(const parser::TopDownOracleGen2&)
 class TopDownOracleGen2 : public Oracle {
       ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:66:7: note:   candidate expects 1 argument, 4 provided
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:66:7: note: parser::TopDownOracleGen2::TopDownOracleGen2(parser::TopDownOracleGen2&&)
/om/group/cpl/language-models/rnng-incremental/nt-parser/oracle.h:66:7: note:   candidate expects 1 argument, 4 provided
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:594:87: error: cannot convert ‘cnn::Dict*’ to ‘dynet::Dict*’ for argument ‘2’ to ‘void parser::ReadEmbeddings_word2vec(const string&, dynet::Dict*, std::unordered_map<unsigned int, std::vector<float> >*)’
     parser::ReadEmbeddings_word2vec(conf["words"].as<string>(), &termdict, &pretrained);
                                                                                       ^
/om/group/cpl/language-models/rnng-incremental/nt-parser/nt-parser-gen-attention-gated-stack-only.cc:723:19: warning: unused variable ‘lp’ [-Wunused-variable]
            double lp = 0;
                   ^
make[2]: *** [nt-parser/CMakeFiles/nt-parser-gen-attention-gated-stack-only.dir/nt-parser-gen-attention-gated-stack-only.cc.o] Error 1
make[1]: *** [nt-parser/CMakeFiles/nt-parser-gen-attention-gated-stack-only.dir/all] Error 2
make: *** [all] Error 2

I was able to successfully build and run nt-parser and nt-parser-gen before adding the ablated parser. For reference, I'm using cmake version 2.8.12 and Boost version 1.68.0.

How to fix "Assertion `end > start' failed"?

Dear authors,

I am training RNNG on Vietnamese treebank. The decoding with discriminative model worked well. However, I met the problem of evaluating joint likelihood under generative model as shown in the attached file:
decoding with rnng-g - error

Could you please let me know how I can solve it?

Best regards,
Quy

Compiling with GPU

Can you add instructions on how to compile/run the library with GPUs?

make -j2 ERROR with EIGEN3

Hallo, by using make -j2 i get an error with EIGEN3 i have tested all versions of EIGEN3 but it is always the following error. How can i fix it ?

Scanning dependencies of target cnn
Scanning dependencies of target cnn_shared
[ 2%] Building CXX object cnn/cnn/CMakeFiles/cnn_shared.dir/cfsm-builder.cc.o
[ 2%] Building CXX object cnn/cnn/CMakeFiles/cnn.dir/cfsm-builder.cc.o
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:723:16: error: ‘std::isfinite’ has not been declared
using std::isfinite;
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isinf_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:738:16: error: ‘std::isinf’ has not been declared
using std::isinf;
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:723:16: error: ‘std::isfinite’ has not been declared
using std::isfinite;
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isnan_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:753:16: error: ‘std::isnan’ has not been declared
using std::isnan;
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isinf_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:738:16: error: ‘std::isinf’ has not been declared
using std::isinf;
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isnan_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:753:16: error: ‘std::isnan’ has not been declared
using std::isnan;
^
In file included from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13:0,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h: In member function ‘bool cnn::Tensor::is_valid() const’:
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:11: error: ‘__builtin_isnan’ is not a member of ‘std’
if (std::isnan(v[i]) || std::isinf(v[i])) return false;
^
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:11: note: suggested alternative:
: note: ‘__builtin_isnan’
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:31: error: ‘__builtin_isinf_sign’ is not a member of ‘std’
if (std::isnan(v[i]) || std::isinf(v[i])) return false;
^
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:31: note: suggested alternative:
: note: ‘__builtin_isinf_sign’
In file included from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13:0,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h: In member function ‘bool cnn::Tensor::is_valid() const’:
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:11: error: ‘__builtin_isnan’ is not a member of ‘std’
if (std::isnan(v[i]) || std::isinf(v[i])) return false;
^
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:11: note: suggested alternative:
: note: ‘__builtin_isnan’
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:31: error: ‘__builtin_isinf_sign’ is not a member of ‘std’
if (std::isnan(v[i]) || std::isinf(v[i])) return false;
^
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:31: note: suggested alternative:
: note: ‘__builtin_isinf_sign’
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In instantiation of ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&) [with T = double; typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type = bool]’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:961:100 required from ‘bool Eigen::numext::isfinite(const T&) [with T = double]’
/home/stud_homes/s4191414/eigen-dev3.3.7/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h:69:5: required from here
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: error: ‘isfinite’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In instantiation of ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&) [with T = double; typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type = bool]’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:961:100 required from ‘bool Eigen::numext::isfinite(const T&) [with T = double]’
/home/stud_homes/s4191414/eigen-dev3.3.7/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h:69:5: required from here
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: error: ‘isfinite’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:533:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: ‘template const Eigen::CwiseUnaryOp<Eigen::internal::scalar_isfinite_op, const Derived> Eigen::isfinite(const Eigen::ArrayBase&)’ declared here, later in the translation unit
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value tes
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: error: no matching function for call to ‘isfinite(const double&)’
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:533:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: candidate: template const Eigen::CwiseUnaryOp<Eigen::internal::scalar_isfinite_op, const Derived> Eigen::isfinite(const Eigen::ArrayBase&)
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value tes
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: template argument deduction/substitution failed:
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value tes
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: note: mismatched types ‘const Eigen::ArrayBase’ and ‘const double’
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:533:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: ‘template const Eigen::CwiseUnaryOp<Eigen::internal::scalar_isfinite_op, const Derived> Eigen::isfinite(const Eigen::ArrayBase&)’ declared here, later in the translation unit
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value test,\sa Eigen::isinf DOXCOMMA Eigen::isnan DOXCOMMA ArrayBase::isfinite)
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: error: no matching function for call to ‘isfinite(const double&)’
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:533:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: candidate: template const Eigen::CwiseUnaryOp<Eigen::internal::scalar_isfinite_op, const Derived> Eigen::isfinite(const Eigen::ArrayBase&)
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value test,\sa Eigen::isinf DOXCOMMA Eigen::isnan DOXCOMMA ArrayBase::isfinite)
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: template argument deduction/substitution failed:
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value test,\sa Eigen::isinf DOXCOMMA Eigen::isnan DOXCOMMA ArrayBase::isfinite)
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: note: mismatched types ‘const Eigen::ArrayBase’ and ‘const double’
return isfinite EIGEN_NOT_A_MACRO (x);
^
cnn/cnn/CMakeFiles/cnn.dir/build.make:62: die Regel für Ziel „cnn/cnn/CMakeFiles/cnn.dir/cfsm-builder.cc.o“ scheiterte
cnn/cnn/CMakeFiles/cnn_shared.dir/build.make:62: die Regel für Ziel „cnn/cnn/CMakeFiles/cnn_shared.dir/cfsm-builder.cc.o“ scheiterte
make[2]: *** [cnn/cnn/CMakeFiles/cnn.dir/cfsm-builder.cc.o] Fehler 1
make[2]: *** [cnn/cnn/CMakeFiles/cnn_shared.dir/cfsm-builder.cc.o] Fehler 1
CMakeFiles/Makefile2:87: die Regel für Ziel „cnn/cnn/CMakeFiles/cnn_shared.dir/all“ scheiterte
make[1]: *** [cnn/cnn/CMakeFiles/cnn_shared.dir/all] Fehler 2
make[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
CMakeFiles/Makefile2:124: die Regel für Ziel „cnn/cnn/CMakeFiles/cnn.dir/all“ scheiterte
make[1]: *** [cnn/cnn/CMakeFiles/cnn.dir/all] Fehler 2
Makefile:140: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2

Training on discriminate parser end before start.

Sorry, issue solved, because I accidentally delete -t from the command

I use both PTB data and English sample data given in the folder. In both cases the program seems to terminated 2 seconds after I input the command.
And there is no parameter file.
There seems to be no error message from the log.

${RNNG_ROOT}/build/nt-parser/nt-parser --cnn-mem 1700 -x -T train.oracle -d dev.oracle -C $dev_file -P --lstm_input_dim 128 --hidden_dim 128 -D 0.2

#-------------------------------------------------------------------
#the log is printed:
#-------------------------------------------------------------------
bash-4.2$ sh RNNG_train.sh
[cnn] random seed: 159019889
[cnn] allocating memory: 1700MB
[cnn] memory allocation done.
COMMAND LINE: /home/wliax/RNNG_Decoder/rnng-master//build/nt-parser/nt-parser -x -T train.oracle -d dev.oracle -C PTB_valid_clp.txt -P --lstm_input_dim 128 --hidden_dim 128 -D 0.2
PARAMETER FILE: ntparse_pos_0_2_32_128_16_128-pid42595.params
Loading top-down oracle from train.oracle [training] ...
Loaded 45445 sentences
cumulative action vocab size: 1186
cumulative terminal vocab size: 59168
cumulative nonterminal vocab size: 1184
cumulative pos vocab size: 46
Loading validation set
Loading top-down oracle from dev.oracle [non-training] ...
Loaded 1346 sentences
cumulative action vocab size: 1186
cumulative terminal vocab size: 59169
cumulative nonterminal vocab size: 1184
cumulative pos vocab size: 46

#------------------------------------------------------------------------------------
scripts used to run the program
#-------------------------------------------------------------------------
#!/bin/bash

training_file=PTB_train_clp.txt
dev_file=PTB_valid_clp.txt
test_file=PTB_test_clp.txt

RNNG_ROOT=/home/wliax/RNNG_Decoder/rnng-master/

python ${RNNG_ROOT}/get_oracle.py $training_file $training_file > train.oracle
python ${RNNG_ROOT}/get_oracle.py $training_file $dev_file > dev.oracle
python ${RNNG_ROOT}/get_oracle.py $training_file $test_file > test.oracle

python ${RNNG_ROOT}/get_oracle_gen.py $training_file $training_file > train_gen.oracle
python ${RNNG_ROOT}/get_oracle_gen.py $training_file $dev_file > dev_gen.oracle
python ${RNNG_ROOT}/get_oracle_gen.py $training_file $test_file > test_gen.oracle

#nohup ${RNNG_ROOT}/build/nt-parser/nt-parser --cnn-mem 1700 -x -T train.oracle -d dev.oracle -C $dev_file -P --lstm_input_dim 128 --hidden_dim 128 -D 0.2 > log.txt
{RNNG_ROOT}/build/nt-parser/nt-parser --cnn-mem 1700 -x -T train.oracle -d dev.oracle -C $dev_file -P --lstm_input_dim 128 --hidden_dim 128 -D 0.2

#---------------------------------------------------------------------------
#Use english sample data to have a try, the result is the same
#---------------------------------------------------------------------------
training_file=sample_input_english.txt
dev_file=sample_input_english.txt
test_file=sample_input_english.txt

python ${RNNG_ROOT}/get_oracle.py $training_file $training_file > train_exp.oracle
python ${RNNG_ROOT}/get_oracle.py $training_file $dev_file > dev_exp.oracle
python ${RNNG_ROOT}/get_oracle.py $training_file $test_file > test_exp.oracle

${RNNG_ROOT}/build/nt-parser/nt-parser --cnn-mem 1700 -x -T train_exp.oracle -d dev_exp.oracle -C $dev_file -P --lstm_input_dim 128 --hidden_dim 128 -D 0.2

Is there trained model that we could play with?

Thank you for your great work. As the training process is a bit complex and takes a few days, I wonder is there trained model that we could play with? Thank you very much.

BTW it would be great if someone ports the C++ implementation to Python... :-)

How did you get 49 unk types?

I use your script to preprocess PTB train(2-21) data, found 66 unk types.
But in your paper, it reported 49.
Did you revised your code after publication ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.