"git@developer.sourcefind.cn:gaoqiong/autoawq_kernels.git" did not exist on "3a85bf4c52ed7fec183f4b192d43559ac393abcc"
change TokenClassificationTask class methods to static methods (#7902)
* change TokenClassificationTask class methods to static methods
Since we do not require self in the class methods of TokenClassificationTask we should probably switch to static methods. Also, since the class TokenClassificationTask does not contain a constructor it is currently unusable as is. By switching to static methods this fixes the issue of having to document the intent of the broken class.
Also, since the get_labels and read_examples_from_file methods are ought to be implemented. Static method definitions are unchanged even after inheritance, which means that it can be overridden, similar to other class methods.
* Trigger Build
Co-authored-by:
Lysandre <lysandre.debut@reseau.eseo.fr>
Showing
Please register or sign in to comment