CogComp / zoe

Zero-Shot Open Entity Typing as Type-Compatible Grounding, EMNLP'18.
43 stars 5 forks source link

Output #36

Open chsuong opened 5 years ago

chsuong commented 5 years ago

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

Slash0BZ commented 5 years ago

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

chsuong commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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.