Giter Site home page Giter Site logo

diegma / graph-2-text Goto Github PK

View Code? Open in Web Editor NEW
152.0 8.0 28.0 15.29 MB

Graph to sequence implemented in Pytorch combining Graph convolutional networks and opennmt-py

License: MIT License

Python 86.49% Shell 2.52% Perl 7.01% Smalltalk 0.32% Emacs Lisp 2.89% JavaScript 0.14% NewLisp 0.27% Ruby 0.28% Slash 0.05% SystemVerilog 0.03%

graph-2-text's People

Contributors

diegma avatar enfry avatar lauhaide 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

graph-2-text's Issues

Problem about the GCN results of Webnlg task

I'm interest in your paper, thank you for your work.
GCN result in Table 1 of the paper shows 53.5 bleu score. But I can't get the score(highest score is 51.75) after running the project serval times(I have tried to change the batch_size and use gcn gates).
My procedure lists as follow:
(1)Using preprocess.py to preprocess by train-delex files and dev-delex files, e.g train-webnlg-all-delex-src-nodes.txt.

(2)Then I run the train.py. python3 train.py -data data/gcn_exp -save_model data/tmp_ -rnn_size 256 -word_vec_size 256 -layers 1 -epochs 30 -optim adam -learning_rate 0.001 -encoder_type gcn -gcn_num_inputs 256 -gcn_num_units 256 -gcn_in_arcs -gcn_out_arcs -gcn_num_layers 4 -gcn_num_labels 5 -gcn-residual residual -seed 42(43 and 44)

(3)Using translate.py to generate text by test-delex files and relexicalise the text.

(4)Using calculate_bleu_dev.sh to evaluation relexicalised text with only three test-notdelex references(test-all-notdelex-reference0.lex, test-all-notdelex-reference1.lex, test-all-notdelex-reference2.lex).

Is my procedure right? Could you please provide me a exact hyparameters?

WebNLG generated texts

Hi, I'm currently working with the WebNLG data and I'd like to know if the texts generated by the models reported in the paper can be made available.
Thanks in advance.

preprocessing script for webnlg

Hi! Thanks a lot for releasing the code.

You said in the ReadMe

There is a preparation step for extracting the node and the edges from the graphs. Instruction for this are in the WebNLG scripts point 1

Could you please point to the link to the script? I couldn't find such script on their website which seems rather complicated.

Thanks a lot in advance!

module 'jsonrpc' has no attribute 'JsonRpc20'

When I run 'python3 sr11_onmtgcn_input.py -i ../data/srtask11/SR_release1.0/ -t deep -p test', the error occurs:
Traceback (most recent call last):
File "sr11_onmtgcn_input.py", line 19, in
parseService = CoreNLPService()
File "../utils/CoreNLPService.py", line 15, in init
self.server = self.get_server()
File "../utils/CoreNLPService.py", line 18, in get_server
version = jsonrpc.JsonRpc20()
AttributeError: module 'jsonrpc' has no attribute 'JsonRpc20'

I am using python3.6

problem in processing step

Hi,

i have problem in processing step. i have downloaded the data on webnlg but i cant found train-webnlg-all-notdelex-src-nodes.txt. where can i get it?
Thanks..

preprocessing script for Dependency parsing data

Hi,

Thank you for this great paper and also for releasing the code.
My question is about the preprocessing of other data like dependency parsing, the provided scripts do not handle it I guess. So is it possible to know what is the expected format of the input. Does a Matrix N*N representing the graph structure is enough, or other tricky representations must be added.

Thanks

The problem in the preprocessing step

Hi, thanks for your contributions.
I met a problem in the preprocessing step. When I run preprocess.py as your instruction, it shows an error. It shows in the pic below:
error
Could you please help me to find out the error reason? Thank you in advance.

index out of bounds?

File "onmt/io/IO.py", line 244, in get_adj
adj_arc_out[idx_out] = np.array([d, arc_1]) # outgoing arcs
IndexError: index 13440 is out of bounds for axis 0 with size 13440

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.