def read(self) -> List[str]: """Read headers file.""" return io.read_data(self.doc, io.HEADERS_FILE).splitlines()
def read(self): """Read structure file.""" return io.read_data(self.doc, io.STRUCTURE_FILE)
def read(self): """Read arbitrary corpus level string data from annotation file.""" return io.read_data(None, self.name)
def read(self, doc: str): """Read arbitrary string data from annotation file.""" return io.read_data(doc, self.name)
def read(self, doc: Optional[str] = None): """Read arbitrary string data from annotation file.""" return io.read_data(self.doc or doc, self.name)