Added file parse interface and implemented the patent parser.

Added file parse interface and implemented the patent parser.

Also changed the MappingGeneratorTest accordingly.