parser for patent