-
Notifications
You must be signed in to change notification settings - Fork 36
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
How to generate AMR from a file #13
Comments
Hi @Wangpeiyi9979 ! This requires a bit of edits to the code as it is right now. This will not be an exhaustive list of things you might need to do, but a few tips:
Best of luck! :) |
@SimonWesterlind Thanks for answering, if you have script to convert the sentence to the given format, please share it with us :) |
Here's a simple script to convert sentences to an AMR format.
After you do this you still need to...
|
@bjascob Thanks for the script! :) 👍, I have to edit the script to make it work, you can view that script at https://github.com/gauravghati/stog/blob/master/scripts/sentence-amr.py The format needed for the input is:
tokens, lemmas, pos_tag, and ner_tag is also needed for the input! |
The annotator script (see readme 3. step) creates the tokens, lemmas,... tags. This uses the Stanford NLP system. Using NLTK to annotate will likely give you less than optimal results since the internals are all setup to work with the Stanford Named-Entity tags, not NLTK's (and NLTK is a fairly poor parser). Also, don't forget to run the other pre-processing step before generating, otherwise things won't generate correctly (even though it will probably run without an error). |
Hi, Thanks for your nice work. and I want to realize a simple task
If I just have a file as follows:
And how to use this pre-train model to generate AMR of these sentences directly..
The text was updated successfully, but these errors were encountered: