def read(self, file):
        """Reads the captions file."""
        content = self._read_content(file)
        self._validate(content)
        self._parse(content)

        return self
def read ( self , file ) : content = self . _read_content ( file ) self . _validate ( content ) self . _parse ( content ) return self
Reads the captions file.