Giter VIP home page Giter VIP logo

zgen's People

Contributors

leoncrashcode avatar ratishsp avatar zsutdnlp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

zgen's Issues

Cmake on OSX

Hi!

I'm trying to run ZGen on my OSX. ./configure works quite well, but than when I run make, I get this:
[ 3%] Linking CXX executable bin/unittest ld: library not found for -lboost_thread clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [bin/unittest] Error 1 make[1]: *** [CMakeFiles/unittest.dir/all] Error 2 make: *** [all] Error 2

Any ideas how I can fix it? I have Boost installed of course.

Fails with segmentation fault if no ngram LM is used

If no ngram LM is used, the code fails in decoder.cc file in below lines:
if(model->ngram != NULL)
ctx->lattice[0].ngstate = (model->ngram)->BeginSentenceState();

Here ngram is not NULL and it goes inside the control structure and throws a Segmentation fault

Documentation of training procedure

Hello all,

We would like to use ZGen to linearise dependency trees, that is, our input is an unordered tree, for example:

<NODE lem="love" si="root">
  <NODE lem="Mary" si="nsubj"/>
  <NODE lem="beer" si="obj"/>
</NODE>

And the output is a sequence of tokens in order, e.g. "Mary love beer".

I have read the documentation, but I can't find out how I would train such a model.

Some specific questions:

  1. What does -1 and 1 mean in the constraints format ? Is -1 = head and 1 = dependent?
  2. Could the constraints be extracted from a treebank ?

If there is some other documentation and I've missed it, apologies!

Compiling on archlinux

When compling with gcc 5.2 and boost 1.58.0, I get the following error:

[ 98%] Building CXX object CMakeFiles/unittest.dir/src/unittest/shiftreduce/test_action.cc.o
In file included from /usr/include/c++/5.2.0/complex:45:0,
                 from /usr/include/boost/detail/container_fwd.hpp:98,
                 from /usr/include/boost/functional/hash/extensions.hpp:22,
                 from /usr/include/boost/functional/hash/hash.hpp:558,
                 from /usr/include/boost/functional/hash.hpp:6,
                 from /scratch/ZGen-master/src/shiftreduce/types/action.h:7,
                 from /scratch/ZGen-master/src/unittest/shiftreduce/test_action.cc:2:
/usr/include/c++/5.2.0/sstream:335:7: error: ‘struct std::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
       struct __xfer_bufptrs

Any idea where it comes from?

Error when running ZGen -test

Hello,

I'm trying to run ZGen with this as my input.in file:

__Ms._Haag__ _ 1 N
plays _ -1 N
__Elianti__ NP -1 _
. . 1 N

Using this command:
./bin/ZGen_SR test \
--type none \
--model /path/to/your/model \
--input /path/to/your/input_file \
--posdict /path/to/your/postag_dict

Using the model linked in the documentation.

And my output is this:
2017-01-06 23:11:21 [warning] parseopt: postag dict is specified.
2017-01-06 23:11:21 [info]
2017-01-06 23:11:21 [info] ZGen::shift-reduce linearizer << TEST >> 0.2.0
2017-01-06 23:11:21 [info] ----------------------------------------------
2017-01-06 23:11:21 [info] Experiment 22-3.1 - All feat with S0 lookahead feat
2017-01-06 23:11:21 [warning] Pipe: ngram model doesn't exist.
terminate called after throwing an instance of 'boost::archive::archive_exception'
what(): input stream error
Aborted (core dumped)

Do you have any ideas how to fix it? Am I doing something wrong?

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.