git clone --recursive [email protected]:url_to/awesome_submodule.git path_to_awesome_submodule
git submodule add [email protected]:url_to/awesome_submodule.git path_to_awesome_submodule
git clone --recursive [email protected]:url_to/awesome_submodule.git path_to_awesome_submodule
git submodule add [email protected]:url_to/awesome_submodule.git path_to_awesome_submodule
import torch | |
class BiaffineAttention(torch.nn.Module): | |
"""Implements a biaffine attention operator for binary relation classification. | |
PyTorch implementation of the biaffine attention operator from "End-to-end neural relation | |
extraction using deep biaffine attention" (https://arxiv.org/abs/1812.11275) which can be used | |
as a classifier for binary relation classification. |