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

Output #36

Open
chsuong opened this issue Oct 31, 2019 · 5 comments
Open

Output #36

chsuong opened this issue Oct 31, 2019 · 5 comments

Comments

@chsuong
Copy link

chsuong commented Oct 31, 2019

Does the system save the results of the experiments? Is the terminal output the only output?

@Slash0BZ
Copy link
Member

Slash0BZ commented Nov 1, 2019

It does, see this function: https://github.com/CogComp/zoe/blob/master/main.py#L79

@chsuong
Copy link
Author

chsuong commented Nov 1, 2019

Thanks for your answer!

Unfortunately, I tried to open the runlog file, which I presumed would save the experiment results. But I'm having trouble doing so and get the error ModuleNotFoundError: No module named 'zoe_utils'. Any idea why and how to resolve this? The file (2.9M) does exist.

`import pickle
import io
infile = open('/Users/chsuong/zoe/data/log/runlog_figer.pickle','rb')
new_dict = pickle.load(infile)

infile.close()

print(new_dict)

ModuleNotFoundError Traceback (most recent call last)
in
1 infile = open('/Users/chsuong/zoe/data/log/runlog_figer.pickle','rb')
----> 2 new_dict = pickle.load(infile)
3 infile.close()
4
5 print(new_dict)

ModuleNotFoundError: No module named 'zoe_utils'`

@Slash0BZ
Copy link
Member

Slash0BZ commented Nov 4, 2019

Sorry about the late reply. One possible explanation is that you need to import the modules here https://github.com/CogComp/zoe/blob/master/main.py#L5-L9, because the objects in the pickle file rely on the data structures.

@chsuong
Copy link
Author

chsuong commented Nov 4, 2019

Thank you! It worked.

Is there any way to view the runlog file in a human-readable form? Below was the output I got:

image

@Slash0BZ
Copy link
Member

Slash0BZ commented Dec 7, 2019

Ah sorry, I forgot to reply. There are no built-in methods for that, but it should be fairly easy to print whatever actual contents are there. All data are stored as a Sentence object, which you can find in zoe_utils.py.

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

No branches or pull requests

2 participants