From ffec11ce67d8fe75ea0d5dde5ddf17eb1017fa7d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 2 Oct 2022 01:45:34 +0200 Subject: Add comments --- text_recognizer/data/tokenizer.py | 1 + 1 file changed, 1 insertion(+) (limited to 'text_recognizer/data/tokenizer.py') diff --git a/text_recognizer/data/tokenizer.py b/text_recognizer/data/tokenizer.py index a5f44e6..12617a1 100644 --- a/text_recognizer/data/tokenizer.py +++ b/text_recognizer/data/tokenizer.py @@ -37,6 +37,7 @@ class Tokenizer: @property def num_classes(self) -> int: + """Return number of classes in the dataset.""" return self.__len__() def _load_mapping(self) -> Tuple[List, Dict[str, int], List[int]]: -- cgit v1.2.3-70-g09d2