A knowledge discovery and reuse pipeline for information extraction in clinical notes