Month: January 2022

  • Question Answering using BERT

    Final In [ ]: !pip install simpletransformers In [ ]: from simpletransformers.question_answering import QuestionAnsweringModel, QuestionAnsweringArgs model = QuestionAnsweringModel(model_name="bert-large-uncased-whole-word-masking-finetuned-squad",model_type="bert") In [ ]: context_text = "After being relatively inactive since 2014, the Hunga Tonga volcano erupted on 20 December 2021, sending particulates into the stratosphere. A large plume of ash was visible from Nukuʻalofa, the capital city of Tonga, about 70 km (45 […]

  • The fundamental issue in determining entity level causality

    Let denote the outcome, where denotes the entity being examined (for instance, the individual) and denotes the treatment. Individual Treatment Effect (ITE) is then defined as the difference in the outcome between the two scenarios: with treatment and without treatment. Mathematically, it is represented as . However, there is a fundamental problem with such a […]