Contextual Knowledge Learning For Dialogue Generation