Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error at Predictor Training: "Predictor is not a subclass of QESystem" #97

Open
tervingo opened this issue Apr 22, 2021 · 2 comments
Open
Labels
question Further information is requested

Comments

@tervingo
Copy link

tervingo commented Apr 22, 2021

Hi,

I am trying to train a predictor model with OpenKiwi 2.0.0 on Windows. I am using the command 'kiwi train config\predictor.yaml'. I am getting the error:

Predictor is not a subclass of QESystem; make sure its class is decorated with @QESystem.register_subclass (type=value_error)
system -> load
Must provide class_name or load (type=value_error)

The predictor.yaml file has the line

system:
class_name: Predictor

Any help would be most welcome.

Thanks and Regards

PD - I have tried the same on Ubuntu with OpenKiwi 2.1.0 and I'm getting exactly the same error

@tervingo tervingo changed the title Predictor is not a subclass of QESystem Error at Predictor Training: "Predictor is not a subclass of QESystem" Apr 23, 2021
@zhaofuchen
Copy link

zhaofuchen commented May 10, 2021 via email

@captainvera
Copy link
Contributor

Hello @tervingo,

Sorry for my late response! As @zhaofuchen mentioned, the Predictor is the first step of creating a predictor-estimator model. This means that it can't be trained with the Quality Estimation training pipeline.

Instead, this step is handled by the pretrain pipeline. Doing kiwi pretrain config\predictor.yaml should work!

you can read more at: https://unbabel.github.io/OpenKiwi/usage.html#training-and-pretraining

@captainvera captainvera added the question Further information is requested label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants