Open danielwonght opened 4 years ago
Loading word2vec embedding causes the memory issue. Loading embedding vector in string format require much more memory.
Modify the function matchzoo.embedding.load_from_file from:
matchzoo.embedding.load_from_file
data = pd.read_csv(file_path, sep=" ", index_col=0, header=None, skiprows=1)
to:
data = pd.read_csv(file_path, sep=" ", index_col=0, header=None, skiprows=1, quoting=csv.QUOTE_NONE)
would you like to send a PR to fix this issue? @danielwonght
Sure.
Describe the bug
Loading word2vec embedding causes the memory issue. Loading embedding vector in string format require much more memory.
Solution
Modify the function
matchzoo.embedding.load_from_file
from:to: