dicee.read_preprocess_save_load_kg.preprocess
Classes
Preprocess the data in memory |
Module Contents
- class dicee.read_preprocess_save_load_kg.preprocess.PreprocessKG(kg)[source]
Preprocess the data in memory
- kg
- start() None[source]
Preprocess train, valid and test datasets stored in knowledge graph instance
Parameter
- rtype:
None
- preprocess_with_byte_pair_encoding_with_padding() None[source]
Preprocess with byte pair encoding and add padding
- preprocess_with_pandas() None[source]
Preprocess with pandas: add reciprocal triples, construct vocabulary, and index datasets