Giter Site home page Giter Site logo

sapienzanlp / gsrl Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 3.0 198 KB

GSRL is a seq2seq model for end-to-end dependency- and span-based SRL (IJCAI2021).

License: Other

Shell 0.03% Perl 44.99% Python 54.98%
nlp srl semantic-role-labeling generation end-to-end seq-to-seq semantics deep-learning

gsrl's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

gsrl's Issues

Need some help with linearization

Thank you very much for your contribution in gsrl!
Your design for NESTED SPAN-BASED SRL really inspired me , but I have trouble with how to merge some SRL sentences into one NESTED sentence , I would be very grateful if you could make this preprocessing method for this part in public .

Question about the evaluation

Thanks for publishing your code. When I reading the code for the evaluation, I have a question concerning the generation of the prediction file.
In

def write_props_format_predictions(out, predictions, gold_pred):

, if the input sentence is [A, B, C, D, E, F, G], and we assume the golden predicate is [A, C, F] (the role is B, D, G, we assume each predicate has only one role), and the model predicts the predicate is [A, F] (and the corresponding role is B, G, respectively). Based on the code, the results will be something like

A	(V*)	*
-	Arg0*)	*	
C	*	(V*)	*
-	*	*
-	*	*
F	*	(V*)	
-	*	(Arg0*)

namely, that some columns will have two predicates, and some rows will have more columns (the third column has three rows, while others have two). Will this code generate this way? If so, will this negatively influence the performance?

Question About Dataset Preprocessing.

Hi, thanks for your great work. I am trying to train the gsrl model on conll-2012 dataset. However I met some trouble during dataset preprocessing.
I have the official dataset (Ontonotes5), which looks like

$ tar zxvf LDC2013T19.tgz
$ tree -L 3 -d ontonotes-release-5.0/data/files/data
ontonotes-release-5.0/
??? data
    ??? files
        ??? data
            ??? arabic
            ?   ??? annotations
            ?       ??? nw
            ??? chinese
            ?   ??? annotations
            ?       ??? bc
            ?       ??? bn
            ?       ??? mz
            ?       ??? nw
            ?       ??? tc
            ?       ??? wb
            ??? english
                ??? annotations
                    ??? bc
                    ??? bn
                    ??? mz
                    ??? nw
                    ??? pt
                    ??? tc
                    ??? wb

I am wondering what does the final data struture look like (train.txt,dev.txt,test.txt) and how to transform the raw dataset into yours, is there a transform script ?
Thanks~

API / module

Hi, first off thank you very much for your work overall! You guy did so much on SRL :)
I need to run SRL on another dataset and as I needed predicate senses and a dependency based output, thus your model was just perfect. Is there a fairly easy way to run predictions on new unstructured sentences ? Any suggestions? or Are you maybe planning to make a pip module?

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.