Thousands of hours of content posted by the Islamic State group was run past the tool, in order to "train" it to automatically spot extremist material.