zoe icon indicating copy to clipboard operation
zoe copied to clipboard

Output

Open chsuong opened this issue 6 years ago • 5 comments

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

chsuong avatar Oct 31 '19 19:10 chsuong

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

Slash0BZ avatar Nov 01 '19 14:11 Slash0BZ

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'`

chsuong avatar Nov 01 '19 14:11 chsuong

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.

Slash0BZ avatar Nov 04 '19 08:11 Slash0BZ

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

chsuong avatar Nov 04 '19 15:11 chsuong

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.

Slash0BZ avatar Dec 07 '19 21:12 Slash0BZ