Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize/deserialize support in BaseParser #100

Merged
merged 6 commits into from
Jun 17, 2014

Conversation

juditacs
Copy link
Collaborator

  • dump_to_file: dumps the list of parse_all method's yield values to file in cPickle format
  • load_from_file: reads cPickle file
  • parse_all: yield language data, one dictionary/language. The subclasses must override this method in order to use the serialization
  • parse_or_load : if the pickle file exists, load it instead of parsing. If it doesn't exist, parse everything and save it in pickle

Discussion is welcome

zseder added a commit that referenced this pull request Jun 17, 2014
Serialize/deserialize support in BaseParser
@zseder zseder merged commit 15fca7f into kornai:master Jun 17, 2014
@zseder zseder deleted the baseparsers branch June 17, 2014 09:04
@zseder zseder mentioned this pull request Jun 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants