Demo entry 3549074



Submitted by anonymous on Jan 21, 2016 at 12:08
Language: Python 3. Code size: 404 Bytes.

import pickle
import csv
import numpy

with open("polyglot-nl.pkl","rb") as f:
    words, embeddings = pickle.load(f)

with open("polyglot-nl.csv","wb") as f:
    writer = csv.writer(f)
    for i in zip(words, embeddings):
        a, b = i
        b = str(b)

        # Ignore weird stuff
            writer.writerow((a, b))
        except Exception, e:

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).