• Bobby Donchev's avatar
    change TokenClassificationTask class methods to static methods (#7902) · 52f44dd6
    Bobby Donchev authored
    
    
    * 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: default avatarLysandre <lysandre.debut@reseau.eseo.fr>
    52f44dd6
utils_ner.py 15.3 KB