euagendas / m3inference

A deep learning system for demographic inference (gender, age, and individual/person) that was trained on massive Twitter dataset using profile images, screen names, names, and biographies
http://www.euagendas.org
GNU Affero General Public License v3.0
145 stars 57 forks source link

Output file options #28

Closed Terela62 closed 2 years ago

Terela62 commented 2 years ago

I am using M3 for a research project and will be combining the output with other data from Twitter. Is it possible to output the results into something more manageable than the print screen output after running the code? The readme does reference the output format but not sure where to look next.

zijwang commented 2 years ago

@Terela62 thanks for your interest in M3. Could you provide a minimal example why it is "print screen"?

Terela62 commented 2 years ago

@zijwang It has just dawned on me that it outputs an OrderedDict() and I can save using

with open('results.json', 'w') as f:
    json.dump(pred, f)

Thank you for your quick response though