Code Monkey home page Code Monkey logo

sg-deep-question-generation's People

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

Watchers

 avatar  avatar

sg-deep-question-generation's Issues

Evaluation script!

Hello!

Could you please provide the evaluation script?

Regards,
Yokesh

Memory Requirements

Hello,

Could you suggest the required memory requirements?
When running the preprocessing script, the program crashes at loading Glove vectors. I am running it on a GCP instance with 50 GB of RAM.

Also, could you advise on how to use this model on custom documents?

Regards,
Yokesh

I could not find the file /datasets/json-data/train.tag.json

When I run scripts/preprocess_data.sh, I get the following error:

No such file or directory: '/home/visionx/xj/SG-Deep-Question-Generation-master/datasets/json-data/train.tag.json'

I have downloaded the directory datasets/json-data that has not the file train.tag.json. Could you help me?

Runtime error when execute the command line "sh scripts/train_generator.sh"

Thank you for your great work.
When I run the command line "sh scripts/train_generator.sh", the training process can run in the first three epochs(epoch 0, epoch 1, epoch 2). But when epoch 3, I get the following error:

RuntimeError: "index_select_out_cuda_impl" not implemented for 'Float'.

Could you tell me how to solve this error?

Answer incorporation

Hi! Thanks for the implementation. I couldn't find in the code where the answer embeddings are averaged and initialized as hidden layer for decoder as mentioned in the paper. I checked the Models.py, Encoders.py and Decoders.py. Also, how are you selecting the answer node out of all the nodes tagged with "ans" attribute as 1?

Question decoder

Hello!
I found when you evaluate the model in the validData, the input of the decoder still includes the question (i.e., the label) if I'm not wrong. I wanna know whether we can input the question of validData (label) in this situation.
Looking forward to your reply, thanks!

how to run get_coref_and_dep_data.py

the advice allennlp==1.0.0, but when I run the code, give an error:
"allennlp.common.checks.ConfigurationError: key "token_embedders" is required at location "model.text_field_embedder.""
i turn the
allennlp==0.9.0,
spacy==2.1.9,
and install en-core-web-sm 2.2.5 by run python -m spacy download en_core_web_sm,
the allnnlp turn it's code of 1.0.0, this is just for advice

unable to run get_coref_and_dep_data.py

Hi, I'm using allennlp 1.0.0 and allennlp-models 1.0.0.
While running the file get_coref_and_dep_data.py using the command - python preprocess/get_coref_and_dep_data.pn.json data.valid.json dp.json crf_rsltn.json, The following error shows:

File "/-------/------/.local/lib/python3.8/site-packages/allennlp/common/params.py", line 237, in pop value = self.params.pop(key) KeyError: 'token_embedders'
allennlp.common.checks.ConfigurationError: key "token_embedders" is required at location "model.text_field_embedder."
How do you resolve this error? I have tried running the code using 2.7.0 version of allennlp and allennlp-models, but the error remains.

Training time

Hello, thanks for your work and patience.
I wonder that how long time I need when train the classifier and generator using one GPU, I found maybe it's a little long when I try to run the code. One week for classifier and one week for generator, two weeks totally. Is there any advice to speed up the training process?
And when I adjust the argument of -gpus, (e.g. 0 1), I found the training process is stopped, has this happened when you train?
Thanks a lot again!

coreference_resolution:

when process data in preprocess_raw_data.py of the coreference_resolution in coreference_resolution:
raw = {d[0]: '\t'.join(d[1]) for d in raw}
seems should be:

raw = {d: '\t'.join(raw[d]) for d in raw}

if the model can run on multi-gpu card

i find someplace error when run muti-card, for example, in EncoderTransformer, the variable length is a list type in EncoderTransformer ,can't be Assign to multiple cards when run on multi-card

The data about build-semantic-graphs

Hello, thanks for your great work!
Maybe there is a bug in the code of "merge.py" about line 85 and 86, sys.argv[2] and sys.argv[3] are in the opposite position.
And can you release the code about how to preprocess the raw data to get "crf_rsltn.json" and "dp.json" and the data of "data.json", "crf_rsltn.json" and "dp.json" ?
Thanks again!!

Prediction on the custom input

Hello,
Can anyone suggest the procedure to be followed to get the prediction on the input provided by us using the same trained model. We want to use our paragraph as input.
Regards,
Shravan

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.