In DS, we align the entity pair (head, tail) from a triple head, rel, tail extracted from a huge knowledge base (e.g., Freebase, Wikidata) with sentences from free texts (e.g., Wikipedia, New York Times) to obtain the training examples, and the label of such an example is the corresponding relation rel.
dS can automatically create a set of training data for each entity pair.