refine the patent parser