sentence1: relation extraction is the task of detecting and classifying relationships between two entities from text .
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 .