Comments (4)
Hi @SapaePhyu !
The eassiest way to reproduce the results is by running the following command:
python -m a2t.evaluation --config resources/predefined_configs/{DATASET}.arguments.config.json
Where {DATASET}
can be ace or wikievents.
However, answering your question, the templates contain placeholders for different information, such as the event trigger ({trg}
), trigger type ({trg_type}
) and of course, the filler candidate ({arg}
). So, on your example:
text = "..."
template = "{arg} bought something."
verbalization = template.format(**{"arg": "John D. Idol", "trg": "hired", "trg_type": "..."})
model_input = "{original_sentence} </s> {verbalization}".format(original_sentence=text, verbalization=verbalization)
Note that this is a very simplified example.
You can see the templates on the appendix of the paper or in the task configs at resources/predefined_configs/.
from ask2transformers.
Thank you, Sainz! Is it correct to think that the inputs of placeholders are the outputs of NER? If so, is there any constraint of selecting the entities, or do the placeholders accept all entities one by one?
from ask2transformers.
Yes! The actual models perform trigger-entity classification in order to assign role fillers to the events. Depending on your evaluation you would want to use gold entities or some entities predicted from a NER model. Regarding the constraints, in the configuration file for each dataset there are defined what we call valid_conditions
, that is, the trigger type entity type pairs that are allowed for a given role. Although the probabilities are computed for every trigger-entity pair, only the ones that fulfill the valid conditions are accepted as valid answers.
from ask2transformers.
Thank you so much for your detailed explanation!!
from ask2transformers.
Related Issues (12)
- Please update the README? HOT 3
- fine-tuning Few-Shot Relation Classification HOT 2
- Tutorial or examples HOT 2
- Typo in apostrophes HOT 1
- Zero-shot Tacred Relation Classification HOT 2
- How to reproduce the EAE task result? HOT 3
- Few-Shot RE HOT 2
- Run GLUE for fine-tuning Few-Shot Relation Classification HOT 2
- Positive (isNext) output for Next Sentence Prediction might be 0 HOT 3
- Incomplete documentation
- Fewshot checkpoints for TACRED HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ask2transformers.