Dice-embedding do not support reading from memory mapped files. It directly reads the file and stores it in the main memory which causes memory overload issues if the knowledge base file is larger than main memory. Here we use mmappickle library which is a memory mapped pickled file to create indices of relations and entities.
This helps in creating a transformed training set into a numpy.ndarray of indexed train data.
Dice-embedding do not support reading from memory mapped files. It directly reads the file and stores it in the main memory which causes memory overload issues if the knowledge base file is larger than main memory. Here we use
mmappickle
library which is a memory mapped pickled file to create indices of relations and entities.This helps in creating a transformed training set into a
numpy.ndarray
of indexed train data.