summaryrefslogtreecommitdiff
path: root/text_recognizer/data
diff options
context:
space:
mode:
Diffstat (limited to 'text_recognizer/data')
-rw-r--r--text_recognizer/data/tokenizer.py1
1 files changed, 1 insertions, 0 deletions
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]]: