sentence1: relation extraction ( re ) is a task of identifying typed relations between known entity mentions in a sentence .
sentence2: relation extraction is a subtask of information extraction that finds various predefined semantic relations , such as location , affiliation , rival , etc. , between pairs of entities in text .