Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event type extraction inference #4

Closed
AndDoIt opened this issue May 26, 2022 · 4 comments
Closed

Event type extraction inference #4

AndDoIt opened this issue May 26, 2022 · 4 comments

Comments

@AndDoIt
Copy link

AndDoIt commented May 26, 2022

I have finished the training of Entity type extraction task, and I have a file with raw text and no event label, I wondered how to get the entity type inference?

@boy56
Copy link
Collaborator

boy56 commented May 26, 2022

Entity type extraction? Is it like Argument Extraction?
Well, In the inference process, you can do
(1) Use a classification model(ours or other methods like bert) to get the event types of the raw text
(2) Take the event type, role type(related to the event type) and the raw text as the input, and the model will generate the arguments(or entities) of this role type.

@AndDoIt
Copy link
Author

AndDoIt commented May 26, 2022

Thanks very much for your reply!
I just finished the model training of first module of Event Type Dection, and now I want to use your model that I have trained to get the event types of the raw text. While the other two tasks have the inference bash script, for my first task, what kind of format that dataset shoule be converted? And just use run_seq2seq.py with argument --do_predict?

@boy56
Copy link
Collaborator

boy56 commented May 26, 2022

Thanks very much for your reply! I just finished the model training of first module of Event Type Dection, and now I want to use your model that I have trained to get the event types of the raw text. While the other two tasks have the inference bash script, for my first task, what kind of format that dataset shoule be converted? And just use run_seq2seq.py with argument --do_predict?

I recommend you that:
(1) use the data_convert/convert_text_to_target.py to convert the data format.
(2) train the argument extraction model use the gold event type (bash run_seq2seq_span.bash XXX).
(3) use the argument extraction model to do this task: event type role type raw text -> roles. (run_arg_predict.bash will be useful).

@AndDoIt
Copy link
Author

AndDoIt commented May 26, 2022

Okay, I see. Thanks for your kindly reply!

@AndDoIt AndDoIt changed the title Entity type extraction inference Event type extraction inference May 27, 2022
@AndDoIt AndDoIt closed this as completed Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants