Skip to content

Fix the model saving #10

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

Merged
merged 1 commit into from
Aug 16, 2018
Merged

Fix the model saving #10

merged 1 commit into from
Aug 16, 2018

Conversation

r0mainK
Copy link
Contributor

@r0mainK r0mainK commented Aug 16, 2018

Solution to issue #9

So as I told you in slack @kafkasl the problem came from the _path2index and _path2index dicts, which could be saved but when being loaded I think the keys were seen as lists which caused the error.

Since the _path2index mapping is a one-to-one correspondence, I save this mapping instead:
{index: (path, freq)}. Also I modified the dump function, it did not work as intended I think.

Anyway I test on dummy data, so if you could run the pipeline to check it works, then just tell me and we can merge this.

Signed-off-by: Romain Keramitas <[email protected]>
@r0mainK r0mainK requested a review from kafkasl August 16, 2018 11:56
Copy link
Contributor

@kafkasl kafkasl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works with the whole pipeline. I think asdf -> yaml do not support tuples out of the box.
Thanks for the help!

@r0mainK
Copy link
Contributor Author

r0mainK commented Aug 16, 2018

Okay great, merging then

@r0mainK r0mainK merged commit 7f51958 into src-d:master Aug 16, 2018
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