PicklingError: Can't pickle <class 'kiwi.data.encoders.wmt_qe_data_encoder.InputFields[PositiveInt]'>: attribute lookup InputFields[PositiveInt] on kiwi.data.encoders.wmt_qe_data_encoder failed #110
Labels
bug
Something isn't working
Describe the bug
In Windows10,when I try to train_from_file in my Jupyter,I will fail in "Validation sanity check" and the erro is PicklingError:"Can't pickle <class 'kiwi.data.encoders.wmt_qe_data_encoder.InputFields[PositiveInt]'>: attribute lookup InputFields[PositiveInt] on kiwi.data.encoders.wmt_qe_data_encoder failed".
But when I run it in Linux with the same files,it will be all right with no error.
To Reproduce
Steps to reproduce the behavior:
1.My code in Jupyter:
from kiwi.lib.train import train_from_file
import pathlib
congfig = pathlib.Path("config/bert.yaml")
run_info = train_from_file(congfig)
2.my bert.yaml:
bert.yaml.txt
3.Then it will load model and data,until it begin to "Validation sanity check",there will be this PicklingError.
Expected behavior
PicklingError: Can't pickle <class 'kiwi.data.encoders.wmt_qe_data_encoder.InputFields[PositiveInt]'>: attribute lookup InputFields[PositiveInt] on kiwi.data.encoders.wmt_qe_data_encoder failed
Screenshots
Environment (please complete the following information):
I have no idea about this Error,Could someone help me?Thanks.
The text was updated successfully, but these errors were encountered: