Learning Components for A Question-Answering System