link to embeddings

This commit is contained in:
s434766 2021-05-24 10:08:57 +02:00
parent 5ae7c95f2c
commit 3529b9ebf1

View File

@ -7,6 +7,9 @@ import io
import gzip import gzip
import torch import torch
# wget http://publications.it.p.lodz.pl/2016/word_embeddings/pl-embeddings-cbow.txt
def read_data_gz(baseUrl): def read_data_gz(baseUrl):
f = gzip.open(baseUrl,'r') f = gzip.open(baseUrl,'r')
data_unzip = f.read() data_unzip = f.read()