Skip to content

Error Pre-Training Predictor: "model -> encoder -> encode_source extra fields not permitted (type=value_error.extra)" #104

@Qbop981001

Description

@Qbop981001

When I use the predictor.yaml file in config/ to pretrain the predictor model, I got this error. The original message is:

Traceback (most recent call last):
File "/root/anaconda3/envs/kiwi37/bin/kiwi", line 5, in
main()
File "/root/qbp/qe/OpenKiwi-master/kiwi/main.py", line 21, in main
return kiwi.cli.cli()
File "/root/qbp/qe/OpenKiwi-master/kiwi/cli.py", line 84, in cli
train.train_from_configuration(config_dict)
File "/root/qbp/qe/OpenKiwi-master/kiwi/lib/train.py", line 249, in train_from_configuration
train_info = run(config)
File "/root/qbp/qe/OpenKiwi-master/kiwi/lib/train.py", line 341, in run
system = system_type.from_config(config.system, data_config=config.data)
File "/root/qbp/qe/OpenKiwi-master/kiwi/systems/qe_system.py", line 486, in from_config
config = system_cls.Config(**config.dict())
File "pydantic/main.py", line 362, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for Config
model -> encoder -> encode_source
extra fields not permitted (type=value_error.extra)

As the message shows, I assume it is the error of model -> encoder ->encode_source, but in fact I did not revise the original example predictor.yaml file in this project. In the original file, the value of encode_source is set to "false". I tried to override it to "true", and I get the same error.
How can I find the file demonstrating that how the values in .yaml file should be set ?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions