Automatic extraction of relations between medical concepts in clinical texts