diff --git a/_modules/mltb2/files.html b/_modules/mltb2/files.html index 553f92a..4eb7909 100644 --- a/_modules/mltb2/files.html +++ b/_modules/mltb2/files.html @@ -201,6 +201,10 @@

Source code for mltb2.files

         if not self._result_dir_path.is_dir():
             raise ValueError(f"Faild to create or find result_dir '{self.result_dir}'!")
 
+
[docs] def __len__(self) -> int: + """Return the number of data records.""" + return len(self.data)
+ @staticmethod def _get_uuid_from_filename(filename: str) -> Optional[str]: uuid = None diff --git a/api-reference/files.html b/api-reference/files.html index 65a5351..97250aa 100644 --- a/api-reference/files.html +++ b/api-reference/files.html @@ -57,6 +57,7 @@
  • fasttext
  • files
  • +
  • __len__() (mltb2.files.FileBasedRestartableBatchDataProcessor method) +