Implementation of sudo-code found in Triplet Extraction from Sentences