Building medical knowledge base from sentences