Added file parse interface and implemented the patent parser.

Changed the MappingGeneratorTest accordingly.