-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 📝 Added Relations extractor docs. Signed-off-by: Marcos Martinez <[email protected]> * 📝 Added Relations extractor docs. Signed-off-by: Marcos Martinez <[email protected]> --------- Signed-off-by: Marcos Martinez <[email protected]>
- Loading branch information
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Relations Extractor | ||
|
||
The **relations extractor** will extract relations among different entities *previously* extracted by a **linker**.. | ||
|
||
Currently, the is only one Relation Extractor available: ZS-Bert | ||
|
||
|
||
::: zshot.RelationsExtractor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ZS-BERT Relations Extractor | ||
|
||
The ZS-BERT model is a novel multi-task learning model to directly predict unseen relations without hand-crafted attribute labeling and multiple pairwise classifications. Given training instances consisting of input sentences and the descriptions of their relations, ZS-BERT learns two functions that project sentences and relation descriptions into an embedding space by jointly minimizing the distances between them and classifying seen relations. By generating the embeddings of unseen relations and new-coming sentences based on such two functions, we use nearest neighbor search to obtain the prediction of unseen relations. | ||
|
||
This `RelationsExtractor` uses relations pre-defined along with their descriptions, added into the `PipelineConfig` using the `Relation` data model. | ||
|
||
- [Paper](https://arxiv.org/abs/2104.04697) | ||
- [Original Repo](https://github.com/dinobby/ZS-BERT) | ||
|
||
::: zshot.relations_extractor.RelationsExtractorZSRC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters